Skip to content

Commit

Permalink
wrap top level code in function
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Feb 20, 2024
1 parent 2c19c18 commit 249af91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/PHPStan/Rules/Properties/data/bug-10048.php
Expand Up @@ -28,4 +28,6 @@ public function useCallback(): void
}
}

(new Foo())->useCallback();
function doFoo() {
(new Foo())->useCallback();
}

0 comments on commit 249af91

Please sign in to comment.