Files
perl-IOC/defined-array-ConstructorInjection.patch
2020-02-21 20:03:49 +00:00

12 lines
747 B
Diff

--- IOC-0.29.orig/lib/IOC/Service/ConstructorInjection.pm 2007-04-23 01:51:12.000000000 +0200
+++ IOC-0.29/lib/IOC/Service/ConstructorInjection.pm 2020-02-21 18:44:10.935524139 +0100
@@ -46,7 +46,7 @@
# and then to be sure, lets look for
# either the VERSION or the ISA variables
(defined ${"${component_class}::VERSION"}
- || defined @{"${component_class}::ISA"})) ? 1 : 0;
+ || @{"${component_class}::ISA"})) ? 1 : 0;
} || eval "use $component_class";
# throw our exception if the class fails to load
throw IOC::ClassLoadingError "The class '$component_class' could not be loaded" => $@ if $@;