PhpStorm 2023.2 EAP #6
This build brings improvements for generating PHPDocs, support for Laravel Pint, a single point of access to all PHP framework plugins, line granularity for Git commits, and an alternative Light theme for the new UI.
This EAP allows you to try new features from the upcoming PhpStorm 2023.2. EAP builds are free to use, and you can install them side by side with a stable version of PhpStorm. If something doesn’t work correctly, you can quickly roll back back to the previous version without interfering with your workflow.
Improved framework plugins navigation
Previously, the Settings | PHP | Frameworks section listed only the PHP frameworks supported by JetBrains out of the box. Now, we’ve added community-maintained plugins for Laravel Idea and Symfony to the list as well.
PhpStorm also supports a better development workflow for Magento 2 via a third-party Magento plugin.
Smarter PHPDocs generation
The much anticipated PHPDoc improvement is here! PhpStorm now drops redundant declarations from auto-generated PHPDoc blocks in more of its actions and reports on specific redundant PHPDoc tags in doc comments.
The update enhances the generation of getters and setters in the IDE. PhpStorm now adds auto-generated PHPDoc comments only to methods without declared types.
To invoke the generation of getter and setter methods, use the Add getter/setter intention (Alt+Enter) or the generate code action (⌘ N on MacOS/Alt+Insert on Windows).
Previously generated PHPDoc blocks have been addressed as well:
- The Redundant PHPDoc comment inspection has been extended to report PHPDoc comments that contain at least one redundant tag. Previously, it only worked if the whole block was redundant.
- The new Remove all redundant PHPDoc tags quick-fix removes only redundant tags from a PHPDoc block. This quick-fix is available on doc comments even if the inspection has a No highlighting severity level.
There are still more IDE actions that could benefit from this improvement, such as the Generate PHPDoc intention and the Update PHPDoc Comment quick-fix. If this is something you are waiting for, please upvote the issue here.
Built-in support for Laravel Pint
To configure integration with Laravel Pint, go to Settings | PHP | Quality Tools and expand the Laravel Pint section.
Here, you can also set Laravel Pint as your external formatter of choice. This would enable the fixing of all issues detected by Laravel Pint in one go with the Reformat Code (⌘⌥ L / Ctrl+Alt+L) action.
To enable Laravel Pint as a PhpStorm inspection, go to Settings | Editor | Inspections and select the checkbox for Laravel Pint validation under PHP | Quality Tools.
With the inspection enabled, the issues detected by Laravel Pint will be highlighted in any opened PHP file or reported in the Problems tool window together with other errors and warnings after a code inspection has been triggered.
Commit changes line by line
PhpStorm 2023.2 EAP 6 introduces a new level of commit granularity by letting you selectively commit only specific lines of edited code chunks.
To perform a partial commit, open the file diff, select the lines within the edited chunk, and call Include these lines into commit from the context menu. Each line within the chunk gets its own checkbox, and the lines with the selected checkboxes are included in the commit. You can add or exclude lines from the selection using checkboxes or the context menu.
Light theme with light header in the new UI
For v2023.2, we’ve refined the user experience with the Light theme by introducing an alternate Light with Light Header option, which features matching light colors for window headers, tooltips, and notification balloons.
Please see the release notes for the complete list of changes in the EAP #6 build.
- Important! PhpStorm EAP builds are not fully tested and may be unstable.
- You can install an EAP build side by side with a stable PhpStorm version to try out the latest features.
- EAP builds are free to use and don’t require a license. However, they expire 30 days after the build date and then you’ll have to download a new build.
Please let us know about any problems you find by reporting them to our issue tracker or commenting on this post.
Subscribe to Blog updates
PhpStorm 2024.1 Early Access Program Is Now Open
This EAP build brings support for PHPUnit 11, improvements for the Pest test framework, and more.
PhpStorm 2023.3 RC
PhpStorm 2023.3 Release Candidate bundles the Pest plugin into PhpStorm, so you'll now be able to enjoy it out of the box.
PhpStorm 2023.3 Beta 2
In this build, we’ve added new inspections for PHP assertions and revised the integration with third-party quality tools.