mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-13 01:51:50 +01:00
[BaseCollection] Treat the null index as "no index" only while adding new element, iow. do not treat empty string as "no index" behaviour
This commit is contained in:
@@ -30,7 +30,7 @@ trait AddTrait
|
||||
return;
|
||||
}
|
||||
|
||||
if (null === $index || '' === $index) {
|
||||
if (null === $index) {
|
||||
$this->elements[] = $element;
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user