Repository navigation
Conversation
Safe\preg_split accepts a null limit for compatibility, but passing it to native preg_split deprecates the call on supported PHP versions. Normalize null to -1, preserving unlimited splitting, and generate that behavior consistently. Add a generator regression test.
|
I've asked codex to help me understand the failures. The failures had two separate causes: the generated loaders lacked PHP 8.7 branches, and the historical The generator now pins a compatible The second commit also fixes a deprecation in Verified locally on recent PHP 8.6 and 8.7 snapshots: all 46 library tests and 41 generator tests pass on both versions. |
|
I've manually merged the php 8.7 parts - for the |
|
Ah, I see that deprecation warning - reading the PR which introduced it, it seems to be intentional (it verifies that if PHP allows passing a deprecated parameter, then Safe should allow passing the same deprecated parameter, so that we retain compatibility) |
8.6 has been branched out and master became 8.7