TUniqueValues: fix methods signatures

master 3.3.1
Julien Rosset 2 years ago
parent 2d71d2a4a0
commit cc2b53b7af

@ -12,7 +12,7 @@ trait TUniqueValues {
/** /**
* @inheritDoc * @inheritDoc
*/ */
protected function _set (int|string $key, mixed $value): self { protected function _set ($key, $value): static {
if ($this->contains($value)) { if ($this->contains($value)) {
return $this; return $this;
} }
@ -23,7 +23,7 @@ trait TUniqueValues {
/** /**
* @inheritDoc * @inheritDoc
*/ */
protected function _add (mixed ...$values): self { protected function _add (...$values): static {
foreach ($values as $value) { foreach ($values as $value) {
if ($this->contains($value)) { if ($this->contains($value)) {
continue; continue;

Loading…
Cancel
Save