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