Skip to content

Commit

Permalink
Merge pull request #44 from 21TORR/simplify-types
Browse files Browse the repository at this point in the history
Simplify types of `ArgumentBag`
  • Loading branch information
apfelbox authored Jun 6, 2024
2 parents 1ced500 + b33a60a commit 71157bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
3.2.1 (unreleased)
=====

* (internal) Simplify types of `ArgumentBag`.


3.2.0
=====

Expand Down
4 changes: 2 additions & 2 deletions src/Structure/ArgumentBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
/**
* Stricter version of {@see ParameterBag} for usage in flexible argument lists.
*
* @implements \IteratorAggregate<string, array|bool|string|int|float|\UnitEnum|object>
* @implements \IteratorAggregate<string, array|bool|string|int|float|object>
*/
final readonly class ArgumentBag implements \IteratorAggregate, \Countable
{
/**
* @param array<string, array|bool|string|int|float|\UnitEnum|object> $arguments
* @param array<string, array|bool|string|int|float|object> $arguments
*/
public function __construct (
private array $arguments = [],
Expand Down

0 comments on commit 71157bf

Please sign in to comment.