Skip to content

Commit d0da0ef

Browse files
committed
- loose type for Argument::set() $index argument
1 parent 8bd1358 commit d0da0ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Interfaces.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ interface Argument extends Data
152152
* Value mutator.
153153
* Sets a value for a property.
154154
*
155-
* @param string $index The name of the property
155+
* @param int|string $index The name of the property
156156
* @param mixed $value The value
157157
*
158158
* @return static
159159
*/
160-
public function set(string $index, mixed $value): static;
160+
public function set(mixed $index, mixed $value): static;
161161

162162
/**
163163
* Imports multiple values. The existing are overridden.

0 commit comments

Comments
 (0)