| @@ -43,6 +43,8 @@ | ||
| 43 | 43 | * Create ToConstructor binding | 
| 44 | 44 | * | 
| 45 | 45 | * @param ReflectionClass<object> $class | 
| 46 | + * @param InjectionPoints $injectionPoints | |
| 47 | + * @param ReflectionMethod $postConstruct | |
| 46 | 48 | */ | 
| 47 | 49 | public function newToConstructor( | 
| 48 | 50 | ReflectionClass $class, | 
| @@ -4,9 +4,6 @@ | ||
| 4 | 4 | |
| 5 | 5 | namespace Ray\Di; | 
| 6 | 6 | |
| 7 | -use Doctrine\Common\Annotations\AnnotationReader; | |
| 8 | -use Koriym\Attributes\AttributesReader; | |
| 9 | -use Koriym\Attributes\DualReader; | |
| 10 | 7 | use Ray\ServiceLocator\ServiceLocator; | 
| 11 | 8 | use ReflectionClass; | 
| 12 | 9 | use ReflectionMethod; | 
| @@ -26,6 +26,7 @@ | ||
| 26 | 26 | |
| 27 | 27 | /** | 
| 28 | 28 | * @phpstan-param ReflectionClass<object> $class | 
| 29 | + * @param Name $constructorName | |
| 29 | 30 | */ | 
| 30 | 31 | public function __construct( | 
| 31 | 32 | ReflectionClass $class, | 
| @@ -29,6 +29,9 @@ | ||
| 29 | 29 | } | 
| 30 | 30 | } | 
| 31 | 31 | |
| 32 | + /** | |
| 33 | + * @param SetterMethod $setterMethod | |
| 34 | + */ | |
| 32 | 35 | public function add(?SetterMethod $setterMethod = null): void | 
| 33 | 36 |      { | 
| 34 | 37 |          if ($setterMethod) { | 
| @@ -7,7 +7,6 @@ | ||
| 7 | 7 | use Doctrine\Common\Annotations\Reader; | 
| 8 | 8 | use Ray\Di\Di\InjectInterface; | 
| 9 | 9 | use Ray\Di\Di\Named; | 
| 10 | -use Reflection; | |
| 11 | 10 | use ReflectionClass; | 
| 12 | 11 | use ReflectionMethod; | 
| 13 | 12 | |
| @@ -4,9 +4,6 @@ | ||
| 4 | 4 | |
| 5 | 5 | namespace Ray\Di; | 
| 6 | 6 | |
| 7 | -use Doctrine\Common\Annotations\AnnotationReader; | |
| 8 | -use Koriym\Attributes\AttributesReader; | |
| 9 | -use Koriym\Attributes\DualReader; | |
| 10 | 7 | use Ray\Di\Exception\Unbound; | 
| 11 | 8 | use Ray\ServiceLocator\ServiceLocator; | 
| 12 | 9 | use ReflectionMethod; | 
| @@ -5,7 +5,6 @@ | ||
| 5 | 5 | namespace Ray\Compiler; | 
| 6 | 6 | |
| 7 | 7 | use Doctrine\Common\Annotations\Reader; | 
| 8 | -use Koriym\Attributes\AttributesReader; | |
| 9 | 8 | use LogicException; | 
| 10 | 9 | use PhpParser\Node; | 
| 11 | 10 | use PhpParser\Node\Expr; | 
| @@ -5,8 +5,6 @@ | ||
| 5 | 5 | namespace Ray\Di; | 
| 6 | 6 | |
| 7 | 7 | use Koriym\NullObject\NullObject; | 
| 8 | -use Ray\Compiler\FilePutContents; | |
| 9 | -use Ray\Di\Annotation\ScriptDir; | |
| 10 | 8 | use ReflectionClass; | 
| 11 | 9 | |
| 12 | 10 | use function assert; |