diff --git a/tests/CompatibilityFix/MovedClassesTest.php b/tests/CompatibilityFix/MovedClassesTest.php index 0b6af86f1..20fed1fc7 100644 --- a/tests/CompatibilityFix/MovedClassesTest.php +++ b/tests/CompatibilityFix/MovedClassesTest.php @@ -15,7 +15,7 @@ class MovedClassesTest extends TestCase public function testClassAliasesExist() { - foreach (MovedClasses::ALIASES as $old => $new) { + foreach (array_keys(MovedClasses::ALIASES) as $old) { $this->assertTrue(class_exists($old) || interface_exists($old)); } }