diff --git a/system/engine/registry.php b/system/engine/registry.php index 6507fee..c61de17 100644 --- a/system/engine/registry.php +++ b/system/engine/registry.php @@ -345,7 +345,7 @@ final class Registry { if ($injectionClass === self::FACTORY_CLASS) { $declaringClass = $param->__toString(); - $pattern = '/Parameter #\d+ \[ ([^\s]+) \$\w+ \]/'; + $pattern = '/<[^>]+>\s*([^$\s]+)/'; if (preg_match($pattern, $declaringClass, $matches)) { $classFactoryName = $matches[1];