: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Pattern;
trait PluggableFactoryTrait {
private static $types = array();
public static function addType($name, $className) {
self::$types[$name] = $className;
public static function getType($name) {
if (isset(self::$types[$name])) {
return self::$types[$name];
public static function getTypes() {