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

[Insight] PHP 7 reserved words should not be used as class, interfaces or traits names - in src/JoliTypo/Fixer/Numeric.php, line 19 #30

Closed
damienalexandre opened this issue Aug 16, 2016 · 0 comments

Comments

@damienalexandre
Copy link
Member

in src/JoliTypo/Fixer/Numeric.php, line 19

This name is a reserved word since PHP 7 and should not be used as class, interface or trait name.

use JoliTypo\StateBag;

/**
 * Add nbsp between numeric and units.
 */
class Numeric implements FixerInterface
{
    public function fix($content, StateBag $stateBag = null)
    {
        // Support a wide range of currencies
        $content = preg_replace('@([\dº])('.Fixer::ALL_SPACES.')+([º°%Ω฿₵¢₡$₫֏€ƒ₲₴₭£₤₺₦₨₱៛₹$₪৳₸₮₩¥\w]{1})@', '$1'.Fixer::NO_BREAK_SPACE.'$3', $content);

Posted from SensioLabsInsight

damienalexandre added a commit that referenced this issue Apr 2, 2017
* Deprecate the Numeric class, ref #30

* Remove useless BC layer and use real DEPRECATED error code
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

No branches or pull requests

1 participant