Line 29 in /var/www/production/ss_estaonline_web/htdocs/vendor/silverstripe/framework/src/Core/Injector/InjectionCreator.php
20 public function create($class, array $params = []) 21 { 22 if (is_object($class ?? '')) { 23 $class = get_class($class); 24 } 25 if (!is_string($class ?? '')) { 26 throw new InvalidArgumentException('$class parameter must be a string or an object'); 27 } 28 if (!class_exists($class)) { 29 throw new InjectorNotFoundException("Class {$class} does not exist"); 30 } 31 32 // Ensure there are no string keys as they cannot be unpacked with the `...` operator 33 $values = array_values($params); 34 35 return new $class(...$values);