mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Minor refactoring
This commit is contained in:
@@ -126,17 +126,9 @@ trait BaseTestCaseTrait
|
|||||||
*/
|
*/
|
||||||
public function provideNonScalarValue(): ?Generator
|
public function provideNonScalarValue(): ?Generator
|
||||||
{
|
{
|
||||||
yield[
|
yield[[]];
|
||||||
[],
|
yield[null];
|
||||||
];
|
yield[new stdClass()];
|
||||||
|
|
||||||
yield[
|
|
||||||
null,
|
|
||||||
];
|
|
||||||
|
|
||||||
yield[
|
|
||||||
new stdClass(),
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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
|
* @param mixed $value The value to verify
|
||||||
* @return bool
|
* @return bool
|
||||||
|
|||||||
Reference in New Issue
Block a user