Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f23422c

Browse files
authored
Fix typos
1 parent df98f0e commit f23422c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎src/Node/Printer/Printer.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function pPHPStan_Node_SetExistingOffsetValueTypeExpr(SetExistingOffse
8080

8181
protected function pPHPStan_Node_AlwaysRememberedExpr(AlwaysRememberedExpr $expr): string // phpcs:ignore
8282
{
83-
return sprintf('__phpstanRembered(%s)', $this->p($expr->getExpr()));
83+
return sprintf('__phpstanRemembered(%s)', $this->p($expr->getExpr()));
8484
}
8585

8686
protected function pPHPStan_Node_PropertyInitializationExpr(PropertyInitializationExpr $expr): string // phpcs:ignore

‎src/Type/Constant/ConstantArrayType.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ public function sliceArray(Type $offsetType, Type $lengthType, TrinaryLogic $pre
977977
if ($offset < 0) {
978978
/*
979979
* Transforms the problem with the negative offset in one with a positive offset using array reversion.
980-
* The reason is belows handling of optional keys which works only from left to right.
980+
* The reason is below handling of optional keys which works only from left to right.
981981
*
982982
* e.g.
983983
* array{a: 0, b: 1, c: 2, d: 3, e: 4}

‎tests/PHPStan/Analyser/TypeSpecifierTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ public static function dataCondition(): iterable
123123
new Expr\ClassConstFetch(new Name('Bug9499\\FooEnum'), 'A'),
124124
),
125125
[
126-
'__phpstanRembered($foo->bar)' => 'Bug9499\FooEnum::A',
126+
'__phpstanRemembered($foo->bar)' => 'Bug9499\FooEnum::A',
127127
'$foo->bar' => 'Bug9499\FooEnum::A',
128128
],
129129
[
130-
'__phpstanRembered($foo->bar)' => '~Bug9499\FooEnum::A',
130+
'__phpstanRemembered($foo->bar)' => '~Bug9499\FooEnum::A',
131131
'$foo->bar' => '~Bug9499\FooEnum::A',
132132
],
133133
];

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /