File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 22
33namespace React \Promise ;
44
5- use Countable ;
6- use RuntimeException ;
7-
85class CallbackWithDNFTypehintClass
96{
10- #[PHP8 ] public function __invoke ((RuntimeException &Countable )|(RuntimeException &\IteratorAggregate ) $ e ): void { } /*
11- public function __invoke(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
7+ #[PHP8 ]
8+ public static function testCallbackStatic ((\RuntimeException &\Countable )|(\RuntimeException &\IteratorAggregate ) $ e ): void {}/*
9+ public static function testCallbackStatic(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
1210
13- #[PHP8 ] public function testCallback (( RuntimeException & Countable )|( RuntimeException & \ IteratorAggregate ) $ e ): void { } /*
14- public function testCallback(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true ): void { } // */
11+ #[PHP8 ]
12+ public function testCallback (( \ RuntimeException & \ Countable )|( \ RuntimeException & \ IteratorAggregate ) $ e ): void {}
1513
16- #[PHP8 ] public static function testCallbackStatic ((RuntimeException &Countable )|(RuntimeException &\IteratorAggregate ) $ e ): void { }/*
17- public static function testCallbackStatic(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
14+ /*
15+ public function testCallback(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
16+ #[PHP8 ]
17+ public function __invoke ((\RuntimeException &\Countable )|(\RuntimeException &\IteratorAggregate ) $ e ): void {} /*
18+ public function __invoke(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
1819}
You can’t perform that action at this time.
0 commit comments