orklah
orklah
Description (screenshot): -- Hi, We already match [non-optimal patterns with substr](https://github.com/kalessil/phpinspectionsea/blob/master/docs/control-flow.md#substr-could-be-replaced-with-strpos). Here is a new one: ```php $var = 'déjà'; echo substr($var, 1, strlen($var)); // useless third param echo mb_substr($var,...
Description (screenshot): -- Hi! I'm currently working to make a fully type hinted version of the phpstorm stubs. I tried it at work today and it highlighted a lot of...
Description (screenshot): -- Hi, There are a lot of cases where my team do this to check if an array is empty: ```php if(count($strictly_an_array)){ } ``` If we're inside a...
Description (screenshot): -- For the following code: ```php $foo = $bar = false; ``` If we apply the quick fix of the "Nested assignments usage" inspection we get this result:...
| Subject | Details | | :------------- | :---------------------------------------------------------------------------- | | Plugin | Php Inspections (EA Ultimate) last version | Current behaviour -- Hi, In our project, we have a...
Description: -- When we activate the "Array and string offset validity" inspection in our project, we get thousands of errors. The main reason is because we have a lot of...
This will fix the CI crash
The first release candidate for PHP 8.1 is out now and the feature freeze is past, We may start looking at the new features and ensuring they're implemented in Psalm....
### Discussed in https://github.com/vimeo/psalm/discussions/5965 Originally posted by **M1ke** June 21, 2021 https://psalm.dev/r/b5c9862354 In the given example we are wanting to search for an instance of a string in a list...
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...