Skip to content

Commit

Permalink
bump: sigwin/infra:^1.0 (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi authored Nov 21, 2022
1 parent 04a12a9 commit 936fcbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"league/commonmark": "^2.3",
"phpdocumentor/type-resolver": "^1.0",
"phpstan/phpdoc-parser": "^1.0",
"sigwin/infra": "^0.13",
"sigwin/infra": "^1.0",
"spatie/commonmark-highlighter": "^3.0",
"symfony/console": "^5.4 || ^6.0",
"symfony/expression-language": "^5.4 || ^6.0",
Expand Down
3 changes: 1 addition & 2 deletions src/Collection/ReadOnlyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

use Sigwin\YASSG\Collection;
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
use Traversable;

/**
* @template-implements Collection<string, object>
Expand Down Expand Up @@ -82,7 +81,7 @@ public function count(): int
return \count($this->data);
}

public function getIterator(): Traversable
public function getIterator(): \Traversable
{
return new \ArrayIterator($this->data);
}
Expand Down
3 changes: 3 additions & 0 deletions tests/functional/site/src/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public function getName(): string

public function getCategory(): ?Category
{
/**
* @psalm-suppress InvalidArgument
*/
$category = current($this->categories);

return $category !== false ? $category : null;
Expand Down

0 comments on commit 936fcbe

Please sign in to comment.