mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-05 15:07:11 +00:00
Add conditional return types to ensureTraversable
This commit is contained in:
committed by
Fabien Potencier
parent
f9b7e815b0
commit
956d09bf08
@@ -1280,6 +1280,9 @@ final class CoreExtension extends AbstractExtension
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
* @template TSequence
|
||||||
|
* @param TSequence $seq
|
||||||
|
* @return ($seq is iterable ? TSequence : array{})
|
||||||
*/
|
*/
|
||||||
public static function ensureTraversable($seq)
|
public static function ensureTraversable($seq)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user