diff --git a/src/Node/Printer/Printer.php b/src/Node/Printer/Printer.php index a9fb822528..29a25f689f 100644 --- a/src/Node/Printer/Printer.php +++ b/src/Node/Printer/Printer.php @@ -80,7 +80,7 @@ protected function pPHPStan_Node_SetExistingOffsetValueTypeExpr(SetExistingOffse protected function pPHPStan_Node_AlwaysRememberedExpr(AlwaysRememberedExpr $expr): string // phpcs:ignore { - return sprintf('__phpstanRembered(%s)', $this->p($expr->getExpr())); + return sprintf('__phpstanRemembered(%s)', $this->p($expr->getExpr())); } protected function pPHPStan_Node_PropertyInitializationExpr(PropertyInitializationExpr $expr): string // phpcs:ignore diff --git a/src/Type/Constant/ConstantArrayType.php b/src/Type/Constant/ConstantArrayType.php index b4e2ed6f36..a27852bcf5 100644 --- a/src/Type/Constant/ConstantArrayType.php +++ b/src/Type/Constant/ConstantArrayType.php @@ -977,7 +977,7 @@ public function sliceArray(Type $offsetType, Type $lengthType, TrinaryLogic $pre if ($offset < 0) { /* * Transforms the problem with the negative offset in one with a positive offset using array reversion. - * The reason is belows handling of optional keys which works only from left to right. + * The reason is below handling of optional keys which works only from left to right. * * e.g. * array{a: 0, b: 1, c: 2, d: 3, e: 4} diff --git a/tests/PHPStan/Analyser/TypeSpecifierTest.php b/tests/PHPStan/Analyser/TypeSpecifierTest.php index 5a06bfb0aa..62b5188400 100644 --- a/tests/PHPStan/Analyser/TypeSpecifierTest.php +++ b/tests/PHPStan/Analyser/TypeSpecifierTest.php @@ -123,11 +123,11 @@ public static function dataCondition(): iterable new Expr\ClassConstFetch(new Name('Bug9499\\FooEnum'), 'A'), ), [ - '__phpstanRembered($foo->bar)' => 'Bug9499\FooEnum::A', + '__phpstanRemembered($foo->bar)' => 'Bug9499\FooEnum::A', '$foo->bar' => 'Bug9499\FooEnum::A', ], [ - '__phpstanRembered($foo->bar)' => '~Bug9499\FooEnum::A', + '__phpstanRemembered($foo->bar)' => '~Bug9499\FooEnum::A', '$foo->bar' => '~Bug9499\FooEnum::A', ], ];