Fix wrong type for cycle position

It also accepts 0, which is not a positive int.
This commit is contained in:
Ruud Kamphuis
2024-11-04 11:31:38 +01:00
committed by GitHub
parent 98e7f7141a
commit c78499bda9
+1 -1
View File
@@ -344,7 +344,7 @@ final class CoreExtension extends AbstractExtension
* Cycles over a sequence.
*
* @param array|\ArrayAccess $values A non-empty sequence of values
* @param positive-int $position The position of the value to return in the cycle
* @param int<0, max> $position The position of the value to return in the cycle
*
* @return mixed The value at the given position in the sequence, wrapping around as needed
*