Starting with PHP 8.1, it is possible to declare constants as final. Qodana for PHP will suggest updating the property declaration. Private properties with read-only access inside a class can be declared with the readonly flag. Qodana for PHP will suggest a quick-fix right in PhpStorm (Alt+Enter) to replace the old pow() calls with the ** operator. PHP has had an ** exponentiation operator available since version 5.6. Qodana for PHP can warn you about the redundant count() call. When appending an item to an array, there is no need to explicitly specify the index. This can lead to confusion and bugs, so Qodana for PHP now highlights such cases. The latter will not override the value if the key is duplicated. The behavior of array_merge() and merging with the + operator are different from each other in PHP. PhpStorm comes bundled with Qodana, so when Qodana notifies you about an issue in your code, you can open it right in your IDE for further investigation. This version of Qodana brings all of the new inspections from PhpStorm 2022.1 and adds them to your pipeline with our PHP linters. Read our documentation for more information about custom configurations for License audit and check out this blog post to see how it can streamline working routines for developers, managers, and legal teams. To enable License audit, add the following lines to the qodana.yaml file in your project root:Įnter fullscreen mode Exit fullscreen mode The new License audit feature is available for all linters, including Python, Java, Kotlin, PHP, and JavaScript. With this release, we’ve made it easy to bring license auditing into your project and make it a part of your CI/CD pipeline. With Qodana, you can scan dependencies in your code repository to find their licenses and see whether there are any potential issues. Legal and compliance penalties for invalid or inappropriately used licenses in your code can be extremely costly. We also added a bunch of new and useful inspections for PHP and JVM linters. License audit has been an extra linter that had to be configured separately from the main linters. To keep you updated about what’s new, we’re starting a series of regular release blog posts with the major release of Qodana 2022.1. We are continuously adding new functionality and improving Qodana, our code quality platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |