Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.3 | ✨ New PHPCompatibility.ParameterValues.RemovedMbStrimWidthNegativeWidth sniff (RFC) #1615

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 10, 2023

…NegativeWidth` sniff (RFC)

> - MBString
>   . Passing a negative $width to mb_strimwidth() is now deprecated.

Refs:
* https://wiki.php.net/rfc/deprecations_php_8_3#passing_negative_widths_to_mb_strimwidth
* https://github.com/php/php-src/blob/548fc6a8185625bf50c708a9337db01f14860ba1/UPGRADING#L150-L151
* php/php-src 11615
* php/php-src@af3c220

This adds a new sniff to detect the above.

Includes tests and documentation.

Related to 1589
@wimg wimg merged commit cf0f270 into develop Aug 10, 2023
43 checks passed
@wimg wimg deleted the php-8.3/new-removedmbstrimwidthnegativewidth-sniff branch August 10, 2023 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants