Skip to content

Commit 847d20c

Browse files
committed
fix neeeded typo
1 parent 340aed5 commit 847d20c

File tree

8 files changed

+18
-15
lines changed

8 files changed

+18
-15
lines changed

.github/typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[default.extend-words]
22
Symplify = "Symplify"
3+
4+
# plurals
5+
Identicals = "Identicals"

rules/CodeQuality/Rector/Equal/UseIdenticalOverEqualWithSameTypeRector.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,17 @@ public function refactor(Node $node): ?Node
9999

100100
private function hasObjectType(Type $type): bool
101101
{
102-
$hasObjecType = false;
103-
TypeTraverser::map($type, function (Type $type, callable $traverseCallback) use (&$hasObjecType): Type {
102+
$hasObjectType = false;
103+
TypeTraverser::map($type, function (Type $type, callable $traverseCallback) use (&$hasObjectType): Type {
104104
// maybe has object type? mark as object type
105105
if (! $type->isObject()->no()) {
106-
$hasObjecType = true;
106+
$hasObjectType = true;
107107
}
108108

109109
return $traverseCallback($type);
110110
});
111111

112-
return $hasObjecType;
112+
return $hasObjectType;
113113
}
114114

115115
private function normalizeScalarType(Type $type): Type

rules/CodeQuality/Rector/LogicalAnd/AndAssignsToSeparateLinesRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class AndAssignsToSeparateLinesRector extends AbstractRector
1919
{
2020
public function getRuleDefinition(): RuleDefinition
2121
{
22-
return new RuleDefinition('Split 2 assigns with ands to separate line', [
22+
return new RuleDefinition('Split 2 assigns with "and" to separate lines', [
2323
new CodeSample(
2424
<<<'CODE_SAMPLE'
2525
class SomeClass

rules/Php74/Rector/LNumber/AddLiteralSeparatorToNumberRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Taking the most generic use case to the account: https://wiki.php.net/rfc/numeric_literal_separator#should_it_be_the_role_of_an_ide_to_group_digits
2121
* The final check should be done manually
2222
*
23-
* @deprecated as opinionated and group size depends on context. Cannot be automated. Use manually where neeeded instead.
23+
* @deprecated as opinionated and group size depends on context. Cannot be automated. Use manually where needed instead.
2424
*/
2525
final class AddLiteralSeparatorToNumberRector extends AbstractRector implements MinPhpVersionInterface, ConfigurableRectorInterface, DeprecatedInterface
2626
{

src/DependencyInjection/LazyContainerFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static function (Container $container): DynamicSourceLocatorProvider {
451451
}
452452
);
453453

454-
// resetables
454+
// resettable
455455
$rectorConfig->tag(DynamicSourceLocatorProvider::class, ResettableInterface::class);
456456
$rectorConfig->tag(RenamedClassesDataCollector::class, ResettableInterface::class);
457457

src/Testing/PHPUnit/AbstractRectorTestCase.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ protected function setUp(): void
7777

7878
if (! isset(self::$cacheByRuleAndConfig[$cacheKey])) {
7979
// reset
80-
/** @var RewindableGenerator<int, ResettableInterface> $resetables */
81-
$resetables = $rectorConfig->tagged(ResettableInterface::class);
80+
/** @var RewindableGenerator<int, ResettableInterface> $resettables */
81+
$resettables = $rectorConfig->tagged(ResettableInterface::class);
8282

83-
foreach ($resetables as $resetable) {
84-
/** @var ResettableInterface $resetable */
85-
$resetable->reset();
83+
foreach ($resettables as $resettable) {
84+
/** @var ResettableInterface $resettable */
85+
$resettable->reset();
8686
}
8787

8888
$this->forgetRectorsRules();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/**
2-
* @foor a,
2+
* @foo a,
33
*/

tests/Issues/PropertyPromoNeverReturn/Fixture/fixture.php.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Fixture
1313

1414
$this->rules = [
1515
'chave' => function ($value) {
16-
return is_string($value) ? true : 'deve ser uma string';
16+
return is_string($value) ? true : 'not string';
1717
},
1818
];
1919
}
@@ -33,7 +33,7 @@ class Fixture
3333
{
3434
$this->rules = [
3535
'chave' => function ($value) {
36-
return is_string($value) ? true : 'deve ser uma string';
36+
return is_string($value) ? true : 'not string';
3737
},
3838
];
3939
}

0 commit comments

Comments
 (0)