Skip to content

Commit

Permalink
Fixes #3365
Browse files Browse the repository at this point in the history
In before and after the order of execution was reversed. This is counter intuitiv, therefore we change it.
  • Loading branch information
Schrank authored Dec 11, 2022
1 parent 8690ad7 commit 043ac9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Importer/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ protected static function after(array $after)
{
foreach ($after as $key => $value) {
if (is_array($value)) {
foreach (array_reverse($value) as $v) {
foreach ($value as $v) {
after($key, $v);
}
} else {
Expand All @@ -253,7 +253,7 @@ protected static function before(array $before)
{
foreach ($before as $key => $value) {
if (is_array($value)) {
foreach (array_reverse($value) as $v) {
foreach ($value as $v) {
before($key, $v);
}
} else {
Expand Down

0 comments on commit 043ac9f

Please sign in to comment.