symfony / flex

Composer plugin for Symfony
MIT License
4.15k stars 181 forks source link

fix: Replace str_starts_with by strncmp (PHP7 compatibility) #999

Closed PROFeNoM closed 10 months ago

PROFeNoM commented 10 months ago

Hi :wave:

The v1.21.0 tag release made a few hours ago started breaking compatibility with PHP7 because of the use of str_starts_with.

This PR replaces str_starts_with by strncmp, as suggested by the rfc 😃