File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ interface BackedEnum
4+ {
5+
6+ }
Original file line number Diff line number Diff line change @@ -64,3 +64,9 @@ parameters:
6464 - '#^Call to function method_exists\ (\ ) with Doctrine\\DBAL\\Connection and ''createSchemaManager'' will always evaluate to true\.$ #'
6565 - '#^Call to an undefined method Doctrine\\DBAL\\Connection\:\:getSchemaManager\ (\ )\.$ #'
6666 path : tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php
67+
68+ services :
69+ -
70+ class : PHPStan\BackedEnumStubExtension
71+ tags :
72+ - phpstan.stubFilesExtension
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types = 1 );
2+
3+ namespace PHPStan ;
4+
5+ use PHPStan \PhpDoc \StubFilesExtension ;
6+ use const PHP_VERSION_ID ;
7+
8+ class BackedEnumStubExtension implements StubFilesExtension
9+ {
10+
11+ public function getFiles (): array
12+ {
13+ if (PHP_VERSION_ID >= 80100 ) {
14+ return [];
15+ }
16+
17+ return [
18+ __DIR__ . '/../compatibility/BackedEnum.stub ' ,
19+ ];
20+ }
21+
22+ }
You can’t perform that action at this time.
0 commit comments