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 2, 2024
1 parent 4cc3e25 commit c10628b
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 c10628b

Please sign in to comment.