PhpStorm 2022.3

Integriert die PHP 8.2-Unterstützung sowie Code Vision für PHP und Quick-Fix-Vorschauen.
Dezember 07, 2022 - 16:24
Neue Version


  • New UI (Preview)
    • The new UI is cleaner, has fewer distractions and works faster.
  • User Experience
    • Code Vision - Code authors are displayed if version control integration is enabled. If you click on a code author's name, the Annotate with Git blame sidebar opens, letting you see who introduced various changes. Usages are now displayed near all functions and types that show how many times the function or type is referenced in the current project.
    • Quick-fix preview - You can fix some code problems automatically by pressing Alt+Enter. Now you can preview the proposed quick-fix or intention before you apply it and see instantly how your code will be altered.
    • PHPDoc rendered view - You can now change how PHPDoc blocks look with an option that provides better-looking rendering and support for HTML formatting. This makes reading heavily annotated code more pleasant and easy.
    • Improved Quick Documentation - If you press Ctrl+Q on any function, class, or method, PhpStorm will now show documentation right in the editor.
  • PHP 8.2
    • Readonly classes - A readonly class is a quick way to declare a class that has only readonly properties. You can now use these classes for additional data integrity. For readonly classes, PhpStorm provides:
      • A quick-fix to convert a class with readonly properties to a readonly class.
      • An inspection to make sure that readonly classes can only have readonly children.
      • Detecting redundant readonly properties in readonly classes.
      • Checks for prohibited static and dynamic properties in readonly classes.
    • Deprecated dynamic properties - Accessing non-existent properties in PHP 8.2 will cause a deprecation notice. PhpStorm highlights these usages and provides quick-fixes for the errors, either by adding the property, or by using the '#[AllowDynamicProperties]' attribute.
    • Typesystem improvements - PHP 8.2 adds support for disjunctive normal form types, as well as standalone null, true, and false types. Support for all of them have been added in PhpStorm as well.
    • More deprecations - PHP 8.2 introduces a few more deprecations, and PhpStorm has you covered with corresponding inspections to spot them and quick-fixes to update your code.
      • Deprecated ${} string interpolation - If you need to use a variable inside a string, there used to be three possible ways for interpolation. One of them is now marked as deprecated and will be removed in the future. PhpStorm will highlight the occurrences, and you can use an Alt+Enter quick-fix to upgrade the code.
      • Deprecated partially supported callables - Several ways of calling functions have been deprecated in PHP 8.2. PhpStorm highlights invalid code, and you can use an Alt+Enter quick-fix to upgrade your code. PhpStorm can scan your whole codebase at once to detect all possible problems.
  • Databases: Redis support
    • Added support for Redis.
  • Debugging
    • Validate phpinfo() output - You can now add a phpinfo() call to your PHP script or page and copy the output of the function that you see in your browser. Then call Run / Web Server Debug Validation, and you’ll see a dialog that allows you to paste the phpinfo() output from the previous step. PhpStorm will analyze the server configuration and detect most common problems.
    • Check the server configuration with a script - If the phpinfo() information didn’t help, you can now use PhpStorm’s validation script on the server.
    • Return value debugging with Xdebug - Xdebug 3.2 has an extra “return from function” debugging step that allows you to inspect the return value. This release supports this new feature. To trigger it, press Step Into when you’re on the last statement in the function. As a result, an additional variable will be shown in Watches.
  • PHP Tools Integration
    • Run tests in parallel with ParaTest - Added support for parallel testing in PhpStorm.
    • Use external formatters for PHP - It is now possible to choose an external formatter in Preferences | PHP | Quality Tools. You can now use FriendsOfPHP/PHP-CS-Fixer or squizlabs/PHP_CodeSniffer for this purpose.
    • Robo integration - A popular task runner for PHP, Robo, received the following extended support:
      • A special tool window, Robo tasks, is available if a Robo class is present in the project.
      • A running configuration for executing Robo tasks is available inside the context menu and invoked from a Robo method.
      • Each public method inside a Robo class has a gutter icon for the respective configurations.
    • Prophecy support - If you use the Prophecy mocking framework in your tests, working with it in PhpStorm will now be easier.
  • More features for PHP
    • Datetime format preview - You no longer need to remember or look for date() formats anymore. This release shows a tooltip with an example date when hovering on a date format string. In addition, when editing a date format string, you’ll get an autocompletion with hints for all characters that are recognized as format parameters.
    • Support iteration over list array shapes - In this release, you’ll now get full code completion for array-shape items in loops.
  • New Settings Sync solution
    • Merged two old synchronization solutions (IDE Settings Sync and Settings Repository) into a single one - the new Settings Sync. It allows you to reliably synchronize settings across different IDEs and machines.
  • Docker
    • Docker executable from WSL without Docker Desktop - Added support for connections to Docker that run in Microsoft Windows Subsystem for Linux (WSL).
    • New context action: Pull image - You can now call up the context actions (Alt-Enter) on the highlighted image name and then select Pull Docker image to pull a required image without running it from Dockerfile, docker-compose.yml, or even from tests using Testcontainers.
    • Support for the .dockerignore file type - Added full support for .dockerignore files, including code highlighting and completion. These files are now taken into account when you build an image from the IDE.
    • Support for the heredoc format in Dockerfile files - Added the ability to use multiline scripts right in your Dockerfiles.
    • Docker connections from Docker Contexts - Added the ability to set up additional Docker connections using Docker Contexts.
  • HTTP Client
    • Format long requests in HTTP Client - The HTTP Client now provides better formatting options for requests with long URLs. You can also use the Put query parameters on separate lines context action to break the query into smaller fragments on different lines.
    • Pre-request scripts - The HTTP Client now supports script blocks that are executed before requests. You can generate some data before request execution and pass it to the subsequent request using variables.
    • New APIs for JavaScript handlers - Added the сrypto API, making PhpStorm capable of computing the md5 or sha1 hash values for an HTTP request. There are now more random functions available, which is convenient for quick API testing.
  • Web Development
    • New project templates for Next.js and Vite - The New Project wizard available on PhpStorm’s Welcome screen now includes project templates for Vite and Next.js. The Vue template has also been updated so it follows the latest standards.
    • Code Vision for JavaScript and TypeScript - Code Vision inlay hints now also work for JavaScript and TypeScript. These hints will make it easier to track the usages of various classes, methods, type aliases, and interfaces in your code.
    • Vue updates:
      • PhpStorm can now take care of unresolved imports and will offer suggestions for importing Vue components.
      • Added support for the props destructure syntax.
      • Improved the behavior of code completion and type checking for Vue library component props.
    • Vitest support - Added support for Vitest, a Vite-native unit test framework.
Code Vision


PHP IDE mit Refactorings, Code-Vervollständigung, arbeitsbegleitender Code-Analyse und Ausrichtung auf die Codierungsproduktivität.

PhpStorm ist auch verfügbar in:

Sie haben eine Frage?

Live-Chat mit unseren JetBrains-Lizenzierungs-Spezialisten.