Skip to content

Commit

Permalink
Properly declare return type
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored Dec 9, 2024
1 parent 3879aae commit 5668417
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Cookies/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ public static function create($name, $value, array $params = [])
return new self($params);
}

#[\ReturnTypeWillChange]
public function getIterator()
public function getIterator(): ArrayIterator

Check failure on line 106 in src/Cookies/Cookie.php

View workflow job for this annotation

GitHub Actions / PHPStan

Method HeadlessChromium\Cookies\Cookie::getIterator() has invalid return type HeadlessChromium\Cookies\ArrayIterator.
{
return new \ArrayIterator($this->data);

Check failure on line 108 in src/Cookies/Cookie.php

View workflow job for this annotation

GitHub Actions / PHPStan

Method HeadlessChromium\Cookies\Cookie::getIterator() should return HeadlessChromium\Cookies\ArrayIterator but returns ArrayIterator<(int|string), mixed>.
}
Expand Down

0 comments on commit 5668417

Please sign in to comment.