Commaaa2
This commit is contained in:
10
vendor/ramsey/collection/src/AbstractSet.php
vendored
10
vendor/ramsey/collection/src/AbstractSet.php
vendored
@@ -24,10 +24,7 @@ namespace Ramsey\Collection;
|
||||
*/
|
||||
abstract class AbstractSet extends AbstractCollection
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function add($element): bool
|
||||
public function add(mixed $element): bool
|
||||
{
|
||||
if ($this->contains($element)) {
|
||||
return false;
|
||||
@@ -36,10 +33,7 @@ abstract class AbstractSet extends AbstractCollection
|
||||
return parent::add($element);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function offsetSet($offset, $value): void
|
||||
public function offsetSet(mixed $offset, mixed $value): void
|
||||
{
|
||||
if ($this->contains($value)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user