@@ -13,7 +13,6 @@ |
||
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | 14 | use Addiks\SymfonyGenerics\Arguments\ArgumentFactory\ArgumentFactory; |
15 | 15 | use InvalidArgumentException; |
16 | -use Addiks\SymfonyGenerics\Arguments\ArgumentCall; |
|
17 | 16 | use Addiks\SymfonyGenerics\Arguments\Argument; |
18 | 17 | use Addiks\SymfonyGenerics\Arguments\ArgumentFactory\EntityArgumentFactory; |
19 | 18 | use Doctrine\Common\Persistence\ObjectManager; |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use InvalidArgumentException; |
18 | 18 | use Addiks\SymfonyGenerics\Arguments\Argument; |
19 | 19 | use Addiks\SymfonyGenerics\Arguments\LiteralArgument; |
20 | -use Addiks\SymfonyGenerics\Arguments\EntityArgument; |
|
21 | 20 | |
22 | 21 | final class ArgumentFactoryAggregateTest extends TestCase |
23 | 22 | { |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Addiks\SymfonyGenerics\Arguments\Argument; |
18 | 18 | use Symfony\Component\HttpFoundation\Request; |
19 | 19 | use Webmozart\Assert\Assert; |
20 | -use ErrorException; |
|
21 | 20 | use ReflectionType; |
22 | 21 | use ReflectionFunctionAbstract; |
23 | 22 | use ReflectionParameter; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | /** |
119 | 119 | * @param array|string|bool|null $argumentConfiguration |
120 | 120 | * |
121 | - * @return mixed |
|
121 | + * @return string |
|
122 | 122 | */ |
123 | 123 | private function resolveArgumentConfiguration($argumentConfiguration) |
124 | 124 | { |
@@ -219,6 +219,9 @@ discard block |
||
219 | 219 | } |
220 | 220 | } |
221 | 221 | |
222 | + /** |
|
223 | + * @return string |
|
224 | + */ |
|
222 | 225 | private function getTypeNameFromReflectionParameter(ReflectionParameter $parameterReflection): ?string |
223 | 226 | { |
224 | 227 | /** @var string|null $parameterTypeName */ |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Addiks\SymfonyGenerics\Arguments\ArgumentCall; |
15 | 15 | use Addiks\SymfonyGenerics\Arguments\Argument; |
16 | 16 | use InvalidArgumentException; |
17 | -use stdClass; |
|
18 | 17 | use Addiks\SymfonyGenerics\Services\ArgumentCompilerInterface; |
19 | 18 | use ReflectionMethod; |
20 | 19 |