Skip to content

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
@wimg wimg deleted the php-8.3/new-removedmbstrimwidthnegativewidth-sniff branch August 10, 2023 20:36
@jrfnl jrfnl added the PHP: 8.3 label Nov 4, 2025
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.

3 participants