![]() So far, the switch to STDIN input has been implemented only for the PHP_CodeSniffer tool, but we aim to have other code quality tools like PHPStan, PHP CS Fixer, and Psalm support input from STDIN as well. Now, PhpStorm runs the code quality tool directly on the source files (for batch inspections), or passes the contents of source files as a STDIN input (for instant analysis of opened files). Previously, PhpStorm would run the code quality tool on a temporary copy of the source files, which made it impossible to use a baseline with ignored inspections or options like excludePath or scanDirectories. The new implementation enables the usage of a baseline and the exclusion of files from inspections and mappings. ![]() PhpStorm 2023.2 has revised its approach to running inspections with third-party quality tools. The underlying inspections are Condition always evaluates to ‘true/false’ and Unreachable statement under Preferences | Editor | Inspections | PHP | Control flow. ![]() ![]() PhpStorm now detects and highlights PHP’s built-in assert() constructs, PHPUnit’s assertion methods, and methods from the webmozart/assert and beberlei/assert libraries if the assertion is redundant because it is always true or false. With this release, we’ve extended the code insight logic to cover PHP assertions. Download PhpStorm 2023.2 Beta Inspections for PHP assertions ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |