You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
limit
If specified, then only substrings up to limit are returned with the rest of the string being placed in the last substring. A limit of -1 or 0 means "no limit" and, as is standard across PHP, you can use NULL to skip to the flags parameter.
So $limit should be ?int but in the generated preg_split function it is int only.
The text was updated successfully, but these errors were encountered:
Absolutely right.
The signature is correct in PHPStan's functionMap (which we use as the primary source of truth for method signatures), so I'll need to understand what is going on here. The problem is definitely in Safe's code generator.
PHP documentation says:
So
$limit
should be?int
but in the generatedpreg_split
function it isint
only.The text was updated successfully, but these errors were encountered: