From 678cdfdf016d23ef6031d76f2b6171fab8277eb3 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Fri, 6 Sep 2019 11:58:55 +0200 Subject: [PATCH] Minor refactoring --- src/Traits/Test/Base/BaseTestCaseTrait.php | 14 +++----------- src/Utilities/Arrays.php | 2 +- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/Traits/Test/Base/BaseTestCaseTrait.php b/src/Traits/Test/Base/BaseTestCaseTrait.php index 3a203ef..11ec351 100644 --- a/src/Traits/Test/Base/BaseTestCaseTrait.php +++ b/src/Traits/Test/Base/BaseTestCaseTrait.php @@ -126,17 +126,9 @@ trait BaseTestCaseTrait */ public function provideNonScalarValue(): ?Generator { - yield[ - [], - ]; - - yield[ - null, - ]; - - yield[ - new stdClass(), - ]; + yield[[]]; + yield[null]; + yield[new stdClass()]; } /** diff --git a/src/Utilities/Arrays.php b/src/Utilities/Arrays.php index b9a9d8e..e3d57f9 100644 --- a/src/Utilities/Arrays.php +++ b/src/Utilities/Arrays.php @@ -1612,7 +1612,7 @@ class Arrays } /** - * Returns information if given value is an empty array + * Returns information if given value is an array and is empty * * @param mixed $value The value to verify * @return bool