File tree Expand file tree Collapse file tree 8 files changed +54
-1
lines changed
Expand file tree Collapse file tree 8 files changed +54
-1
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,10 @@ jobs:
390390 cd e2e/composer-version-config
391391 composer install
392392 ../../bin/phpstan analyze test.php --level=0
393-
393+ - script : |
394+ cd e2e/bug-12972b
395+ composer install
396+ ../../bin/phpstan analyze
394397 steps :
395398 - name : " Checkout"
396399 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1+ /vendor /
2+ composer.lock
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ require_once __DIR__ . '/vendor/autoload.php ' ;
4+
5+ spl_autoload_register (function ($ class ) {
6+ if ($ class === \other12972 \MyClass::class) {
7+ throw new LogicException ('this should not happen ' );
8+ }
9+ });
Original file line number Diff line number Diff line change 1+ {
2+ "autoload" : {
3+ "classmap" : [
4+ " src/"
5+ ]
6+ }
7+ }
Original file line number Diff line number Diff line change 1+ parameters :
2+ level : 9
3+
4+ paths :
5+ - src
6+
7+ bootstrapFiles :
8+ - autoloader.php
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ require 'autoloader.php ' ;
4+
5+ new \Foo12972 \MyRoot ();
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Foo12972 ;
4+
5+ use other12972 \MyClass ;
6+
7+ class MyRoot {
8+ function doBar (MyClass $ myClass ):void {}
9+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace other12972 ;
4+
5+ class MyClass {
6+ public function doSomething (): int
7+ {
8+ return 1 ;
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments