This commit is contained in:
Yuri Kuznetsov
2021-11-02 19:40:15 +02:00
parent 64a3b851b6
commit d833d43a8b
3 changed files with 8 additions and 8 deletions
@@ -165,8 +165,8 @@ class ActionProcessor
if (
!$type ||
$type->isBuiltin() ||
!$type instanceof ReflectionNamedType
!$type instanceof ReflectionNamedType ||
$type->isBuiltin()
) {
return false;
}
@@ -83,8 +83,8 @@ class BindingContainer
if (
$type &&
!$type->isBuiltin() &&
$type instanceof ReflectionNamedType
$type instanceof ReflectionNamedType &&
!$type->isBuiltin()
) {
$dependencyClassName = $type->getName();
}
+4 -4
View File
@@ -158,8 +158,8 @@ class InjectableFactory
if (
$type &&
!$type->isBuiltin() &&
$type instanceof ReflectionNamedType
$type instanceof ReflectionNamedType &&
!$type->isBuiltin()
) {
try {
$dependencyClass = new ReflectionClass($type->getName());
@@ -342,8 +342,8 @@ class InjectableFactory
if (
$type &&
!$type->isBuiltin() &&
$type instanceof ReflectionNamedType
$type instanceof ReflectionNamedType &&
!$type->isBuiltin()
) {
$paramClass = new ReflectionClass($type->getName());
}