We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6888b71 commit aab166cCopy full SHA for aab166c
1 file changed
src/SetTheory/Set.php
@@ -150,7 +150,6 @@ public function isEmpty(): bool
150
*/
151
public function isMember($x): bool
152
{
153
- // @phpstan-ignore-next-line ($this->getKey() may return null, int|string required)
154
return \array_key_exists($this->getKey($x), $this->A);
155
}
156
@@ -164,7 +163,6 @@ public function isMember($x): bool
164
163
165
public function isNotMember($x): bool
166
167
168
return !\array_key_exists($this->getKey($x), $this->A);
169
170
@@ -254,7 +252,7 @@ public function removeMulti(array $x): Set
254
252
*
255
253
* @param mixed $x
256
257
- * @return string|null
+ * @return string
258
259
protected function getKey($x): string
260
0 commit comments