-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use a data provider to provide various valid forms of `!important` (uppercase, lowercase, etc.) for testing; - Add tests confirming `!important` is removed from `style` attributes; - Remove `importantIsCaseInsensitive` test which is now superseded by the use of the above data provider; - Fix additional bug in which `! important` would not be removed from `style` attribute; The final item has meant replacing a `str_ireplace` with a `preg_replace`. Psalm picks up that in exceptional circumstances the latter may return `null`. Thus, a wrapper for `preg_replace` is required, which will not return `null`: - In debug mode it will throw an exception; - In non-debug mode it will log an error and return the original input string.
- Loading branch information
Showing
2 changed files
with
131 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters