поправил извлечение констант

This commit is contained in:
Artem Vasilev 2022-11-09 22:20:13 +03:00
parent 78ece2bd76
commit 0ce05ac65c

View File

@ -38,10 +38,10 @@ abstract class AbstractDictionary implements DictionaryInterface
do
{
array_push($map, ...$class::MAP);
array_push($map, ...constant($class . '::MAP'));
} while (($class = get_parent_class($class)) != self::class);
array_push($map, ...$class::MAP);
array_push($map, ...constant($class . '::MAP'));
return $map;
}