Prepping everything for a PHP 8 release
This commit is contained in:
1 parent
dfb84c104d
commit
0e8443b1c1
5 files changed
+35
-12
No files matched your search
@@ -308,6 +308,12 @@ class EntityCollection extends \ArrayObject {
|
||||
$this->append( $this->arrayToEntity($value) );
|
||||
}
|
||||
else {
|
||||
foreach ($this as $duplicate) {
|
||||
if ($duplicate === $value) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
parent::append($value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user