Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Node/Printer/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Type/Constant/ConstantArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPStan/Analyser/TypeSpecifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
];
Expand Down
Loading