Skip to content

Fix PHP 8.5 deprecation#1107

Merged
colinodell merged 1 commit intothephpleague:2.8from
freost:fix-php85-deprecation-error
Jan 12, 2026
Merged

Fix PHP 8.5 deprecation#1107
colinodell merged 1 commit intothephpleague:2.8from
freost:fix-php85-deprecation-error

Conversation

@freost
Copy link
Contributor

@freost freost commented Jan 9, 2026

Passing strings of more than one byte to ord() is deprecated in PHP 8.5. This change ensures that ord() is only called if the string is one byte.

Passing strings of more than one byte to ord() is deprecated in PHP 8.5. This change ensures that ord() is only called if the string is one byte.
@colinodell
Copy link
Member

Thanks for the contribution!

@colinodell colinodell merged commit 0719b67 into thephpleague:2.8 Jan 12, 2026
18 checks passed
@f1mishutka
Copy link

Any chance this to be released soon (2.8.1 probably?).
PHP 8.5 released more then month ago so this fix is quite critical...

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants