Skip to content

Commit aab166c

Browse files
committed
Remove unnecessary PHPStan comments.
1 parent 6888b71 commit aab166c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/SetTheory/Set.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ public function isEmpty(): bool
150150
*/
151151
public function isMember($x): bool
152152
{
153-
// @phpstan-ignore-next-line ($this->getKey() may return null, int|string required)
154153
return \array_key_exists($this->getKey($x), $this->A);
155154
}
156155

@@ -164,7 +163,6 @@ public function isMember($x): bool
164163
*/
165164
public function isNotMember($x): bool
166165
{
167-
// @phpstan-ignore-next-line ($this->getKey() may return null, int|string required)
168166
return !\array_key_exists($this->getKey($x), $this->A);
169167
}
170168

@@ -254,7 +252,7 @@ public function removeMulti(array $x): Set
254252
*
255253
* @param mixed $x
256254
*
257-
* @return string|null
255+
* @return string
258256
*/
259257
protected function getKey($x): string
260258
{

0 commit comments

Comments
 (0)