psalm-strict-equality icon indicating copy to clipboard operation
psalm-strict-equality copied to clipboard

Automatically change == into === when safe

Results 4 psalm-strict-equality issues
Sort by recently updated
recently updated
newest added

All these should be auto-fixable without side-effects? ``` $_SERVER['HTTP_HOST'] == 'my-domain.com' $_GET['foo'] == 'bar' substr( $range, 0, 1 ) == '-' $file_extension == 'mp4' // if this were a number...

- extends list of auto-fixable array/object types - auto-fix Unions where one side is string/union of strings - add generic equal class auto-fixables - auto-fix Unions where both sides contain...

https://3v4l.org/pNjfj This plugin should not try to change == to === on arrays. Aside from the above example, === also checks the order of elements in the array, which is...

I'm using this greate tool for everydays. Thank You ! I will now update [phpunit](https://github.com/sebastianbergmann/phpunit) to version 11.0. But this plugin require the `nikic/php-parser 5.0` instead of version `4.0`. I'ts...