File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 strategy :
1010 fail-fast : false
1111 matrix :
12- php-version : ['8.1','8.2']
12+ php-version : ['8.1', '8.2', '8.3 ']
1313 steps :
1414 - name : Checkout
1515 uses : actions/checkout@v2
@@ -36,11 +36,11 @@ jobs:
3636 restore-keys : ${{ runner.os }}-composer-
3737
3838 - name : Install dependencies with composer
39- if : matrix.php-version != '8.3 '
39+ if : matrix.php-version != '8.4 '
4040 run : composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
4141
42- - name : Install dependencies with composer php 8.1
43- if : matrix.php-version == '8.3 '
42+ - name : Install dependencies with composer php 8.4
43+ if : matrix.php-version == '8.4 '
4444 run : composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
4545
4646 - name : Execute Tests
Original file line number Diff line number Diff line change 1212 with :
1313 os : >-
1414 ['ubuntu-latest']
15- php : >-
16- ['8.2']
Original file line number Diff line number Diff line change 77use Doctrine \Common \Annotations \Reader as DoctrineReader ;
88use Spiral \Attributes \AnnotationReader ;
99use Spiral \Attributes \AttributeReader ;
10- use Spiral \Attributes \Composite \SelectiveReader ;
1110use Spiral \Attributes \ReaderInterface ;
1211
1312final class ReaderFactory
@@ -17,10 +16,7 @@ public static function create(DoctrineReader|ReaderInterface $reader = null): Re
1716 return match (true ) {
1817 $ reader instanceof ReaderInterface => $ reader ,
1918 $ reader instanceof DoctrineReader => new AnnotationReader ($ reader ),
20- $ reader === null => new SelectiveReader ([
21- new AttributeReader (),
22- new AnnotationReader (),
23- ]),
19+ $ reader === null => new AttributeReader (),
2420 };
2521 }
2622}
Original file line number Diff line number Diff line change 88use Doctrine \Common \Annotations \AnnotationReader as DoctrineAnnotationReader ;
99use PHPUnit \Framework \TestCase ;
1010use Spiral \Attributes \AnnotationReader ;
11+ use Spiral \Attributes \AttributeReader ;
1112use Spiral \Attributes \Composite \MergeReader ;
12- use Spiral \Attributes \Composite \SelectiveReader ;
1313
1414class ReaderFactoryTest extends TestCase
1515{
1616 public function testCreateFromNull (): void
1717 {
1818 $ reader = ReaderFactory::create (null );
1919
20- $ this ->assertInstanceOf (SelectiveReader ::class, $ reader );
20+ $ this ->assertInstanceOf (AttributeReader ::class, $ reader );
2121 }
2222
2323 public function testCreateFromDoctrineReader (): void
You can’t perform that action at this time.
0 commit comments