MyIntervals / emogrifier

Converts CSS styles into inline style attributes in your HTML code.
https://www.myintervals.com/emogrifier.php
MIT License
907 stars 154 forks source link

Add a fixer rule to always use the strict version of `in_array` & friends #1267

Closed oliverklee closed 3 months ago

oliverklee commented 3 months ago

Like this: https://github.com/MyIntervals/PHP-CSS-Parser/pull/584

JakeQZ commented 3 months ago

There might not be any - we may have already dealt with this - but worth double-checking.

Is there a PHP-CS-Fixer (or perhaps PHPStan/Psalm) rule we can add to cover this?

oliverklee commented 3 months ago

Indeed, there is such a fixer rule, and this ticket should be about that. (Damn you, copy'n'paste! ;-) ). I've updated the ticket title accordingly.