Skip to content

Commit 97d3fe1

Browse files
Copilotsamdark
andcommitted
Improve documentation for ToArrayOfIntegers
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
1 parent 3fcbb2f commit 97d3fe1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Attribute/Parameter/ToArrayOfIntegers.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
/**
1010
* Casts the resolved value to array of integers.
11+
*
12+
* If the resolved value is iterable, each element is cast to an integer.
13+
* If the resolved value is not iterable, it is cast to an integer and wrapped in an array.
1114
*/
1215
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER | Attribute::IS_REPEATABLE)]
1316
final class ToArrayOfIntegers implements ParameterAttributeInterface

0 commit comments

Comments
 (0)