Refix for properties factory

This commit is contained in:
ErickSkrauch 2019-04-07 02:48:59 +02:00
parent 0b0ca2c445
commit 1d57f8dafe
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -12,7 +12,7 @@ class Factory {
public static function createFromProp(array $prop): Property {
$name = $prop['name'];
if (isset(self::$MAP[$name])) {
$className = static::$MAP[$name];
$className = self::$MAP[$name];
return new $className($prop);
}