Skip to content

Commit f68f6f5

Browse files
committed
Add generic types to traversable implementations
1 parent 29a21ce commit f68f6f5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Metadata/InMemoryMetadataStore.php

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ final class InMemoryMetadataStore implements MetadataStoreInterface
2424
private $placesMetadata;
2525
private $transitionsMetadata;
2626

27+
/**
28+
* @param \SplObjectStorage<Transition, array>|null $transitionsMetadata
29+
*/
2730
public function __construct(array $workflowMetadata = [], array $placesMetadata = [], \SplObjectStorage $transitionsMetadata = null)
2831
{
2932
$this->workflowMetadata = $workflowMetadata;

TransitionBlockerList.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* A list of transition blockers.
1616
*
1717
* @author Grégoire Pineau <[email protected]>
18+
*
19+
* @implements \IteratorAggregate<int, TransitionBlocker>
1820
*/
1921
final class TransitionBlockerList implements \IteratorAggregate, \Countable
2022
{
@@ -58,11 +60,6 @@ public function isEmpty(): bool
5860
return !$this->blockers;
5961
}
6062

61-
/**
62-
* {@inheritdoc}
63-
*
64-
* @return \Traversable<TransitionBlocker>
65-
*/
6663
public function getIterator(): \Traversable
6764
{
6865
return new \ArrayIterator($this->blockers);

0 commit comments

Comments
 (0)