diff --git a/system/src/Grav/Common/Data/Blueprints.php b/system/src/Grav/Common/Data/Blueprints.php index ce40edd8c..89fec0ccc 100644 --- a/system/src/Grav/Common/Data/Blueprints.php +++ b/system/src/Grav/Common/Data/Blueprints.php @@ -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) {