From 89e5de0c3776894c39390b29c1080bc9935240c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 29 Feb 2024 17:37:01 +0100 Subject: [PATCH] Fix variable naming in DependencyTest.php --- tests/Unit/BillingPortal/DependencyTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/BillingPortal/DependencyTest.php b/tests/Unit/BillingPortal/DependencyTest.php index b8612c442b..23453f5ee2 100644 --- a/tests/Unit/BillingPortal/DependencyTest.php +++ b/tests/Unit/BillingPortal/DependencyTest.php @@ -100,7 +100,7 @@ class DependencyTest extends TestCase private function checkDependencies(array $steps): array { $dependencies = Purchase::$dependencies; - $stepOrder = array_flip($steps); + $step_order = array_flip($steps); $errors = []; foreach ($steps as $step) { @@ -111,7 +111,7 @@ class DependencyTest extends TestCase } foreach ($dependent as $dependency) { - if (in_array($dependency, $steps) && $stepOrder[$dependency] > $stepOrder[$step]) { + if (in_array($dependency, $steps) && $step_order[$dependency] > $step_order[$step]) { $errors[] = "Dependency error: $step depends on $dependency"; } }