Blueprint extend: reverse order of the multi-extend

This commit is contained in:
Matias Griese
2016-02-15 11:19:46 +02:00
parent 1cfc778467
commit ed3c1c7b3a

View File

@@ -71,7 +71,7 @@ class Blueprints
$extends = [ $extends ];
}
foreach ($extends as $extendConfig) {
foreach (array_reverse($extends) as $extendConfig) {
$extendType = !is_string($extendConfig) ? empty($extendConfig['type']) ? false : $extendConfig['type'] : $extendConfig;
if (!$extendType) {