Skip to content

Commit d3d8c79

Browse files
committed
Update tests to account for incorrect non static access usage
1 parent 26fedb5 commit d3d8c79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/PHPStan/Rules/Properties/AccessPropertiesRuleTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,10 @@ public function testBug12692(): void
349349
$this->checkThisOnly = false;
350350
$this->checkUnionTypes = false;
351351
$this->checkDynamicProperties = false;
352-
$this->analyse([__DIR__ . '/data/bug-12692.php'], [
353-
// This should not be empty!
354-
]);
352+
$this->analyse([__DIR__ . '/data/bug-12692.php'], [[
353+
'Non static access to static property Bug12692\Foo::$static.',
354+
14,
355+
]]);
355356
}
356357

357358
public function testAccessPropertiesAfterIsNullInBooleanOr(): void

0 commit comments

Comments
 (0)