@@ -31,6 +31,7 @@ public function test_it_should_collect_dependencies_defined_in_docblock(): void
3131
3232        use Application\MyDto; 
3333        use Domain\ValueObject; 
34+         use Symfony\Component\Validator\Constraints AS Assert; 
3435
3536        use Application\Model\{User, Product}; 
3637
@@ -39,9 +40,20 @@ class MyClass
3940            /** @var array<int, int|string> */ 
4041            public array $myArray; 
4142
42-             /** @var array<int, User> */ 
43+             /** 
44+              * @var array<int, User> 
45+              */ 
4346            public array $users; 
4447
48+             /** 
49+              * @Assert\NotBlank 
50+              */ 
51+             public array $myAssertedArray; 
52+ 
53+             /** 
54+              * @phpstan-ignore property.readOnlyByPhpDocDefaultValue 
55+              */ 
56+             private static ?\UuidFactoryInterface $factory = null; 
4557
4658            /** 
4759             * @param MyDto[] $dtoList 
@@ -76,13 +88,15 @@ public function myMethod2(array $aParam, array $users): array
7688        $ cd$ parsergetClassDescriptions ()[0 ];
7789        $ dep$ cdgetDependencies ();
7890
79-         self ::assertCount (7 , $ cdgetDependencies ());
91+         self ::assertCount (9 , $ cdgetDependencies ());
8092        self ::assertEquals ('Application\Model\User ' , $ dep0 ]->getFQCN ()->toString ());
81-         self ::assertEquals ('Application\MyDto ' , $ dep1 ]->getFQCN ()->toString ());
82-         self ::assertEquals ('Domain\ValueObject ' , $ dep2 ]->getFQCN ()->toString ());
83-         self ::assertEquals ('Application\Model\User ' , $ dep3 ]->getFQCN ()->toString ());
84-         self ::assertEquals ('Application\Model\Product ' , $ dep4 ]->getFQCN ()->toString ());
85-         self ::assertEquals ('Domain\Foo\MyOtherClass ' , $ dep5 ]->getFQCN ()->toString ());
86-         self ::assertEquals ('Application\Model\User ' , $ dep6 ]->getFQCN ()->toString ());
93+         self ::assertEquals ('Symfony\Component\Validator\Constraints\NotBlank ' , $ dep1 ]->getFQCN ()->toString ());
94+         self ::assertEquals ('UuidFactoryInterface ' , $ dep2 ]->getFQCN ()->toString ());
95+         self ::assertEquals ('Application\MyDto ' , $ dep3 ]->getFQCN ()->toString ());
96+         self ::assertEquals ('Domain\ValueObject ' , $ dep4 ]->getFQCN ()->toString ());
97+         self ::assertEquals ('Application\Model\User ' , $ dep5 ]->getFQCN ()->toString ());
98+         self ::assertEquals ('Application\Model\Product ' , $ dep6 ]->getFQCN ()->toString ());
99+         self ::assertEquals ('Domain\Foo\MyOtherClass ' , $ dep7 ]->getFQCN ()->toString ());
100+         self ::assertEquals ('Application\Model\User ' , $ dep8 ]->getFQCN ()->toString ());
87101    }
88102}
0 commit comments