From 6fc294afbeb60b913a463f0be79647c0330adf54 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 17 Oct 2020 15:09:34 +0200 Subject: [PATCH] Use array_merge() instead of += To avoid overriding items --- tests/BaseTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/BaseTest.php b/tests/BaseTest.php index a377617..e49f397 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -53,10 +53,10 @@ abstract class BaseTest extends TestCase $requires = []; if (isset($annotations['class']['requires'])) { - $requires += $annotations['class']['requires']; + $requires = array_merge($requires, $annotations['class']['requires']); } if (isset($annotations['method']['requires'])) { - $requires += $annotations['method']['requires']; + $requires = array_merge($requires, $annotations['method']['requires']); } foreach ($requires as $require) {