diff --git a/tests/PHPStan/Rules/Properties/data/bug-10048.php b/tests/PHPStan/Rules/Properties/data/bug-10048.php index fbbbba66548..05bcd0ad156 100644 --- a/tests/PHPStan/Rules/Properties/data/bug-10048.php +++ b/tests/PHPStan/Rules/Properties/data/bug-10048.php @@ -28,4 +28,6 @@ public function useCallback(): void } } -(new Foo())->useCallback(); +function doFoo() { + (new Foo())->useCallback(); +}