PhpStorm 2022.2

MockeryとRectorのサポートを追加し、デバッガーとHTTPクライアントを改善
8月 4, 2022
新バージョン

機能

  • Mockery support
    • Added support for Mockery, the popular mock object framework. Added autocompletion support for most Mockery functionality, inspections that help improve your workflow, interface mocking, and much more.
  • Rector support
    • Added support for Rector, the automation tool for managing PHP upgrades and bulk refactorings. You can now run Rector from PhpStorm, review file changes with the handy diff view, and manage its configuration in depth.
  • PHP generics
    • Improved support for generics. With this release, support for minimum and maximum values of integers has been added and support for collections has been improved, in addition to improving type inference from closures.
  • Highlight failed test assertions
    • Whenever one of your test assertions fails, PhpStorm will now highlight the exact line where it failed and will allow you to rerun the test from the failed line using a new context menu suggestion. Just press Alt+Enter on the failed line to rerun that specific test.
  • Creating enums
    • You can now create enums from the Create Class dialog. Make sure your project’s PHP version is set to 8.1 or later, otherwise the enum option won’t show.
  • Debugger improvements
    • When debugging an object, the pseudo-variable will now always be shown on top in the Variables pane.
    • Now shows the contents of an array in the variables pane so that you don’t need to manually open it.
    • Whenever an object implements the __toString() method, the textual representation of that object will now be shown in the Variables pane as well.
  • Clickable URLs
    • Added support for clickable URLs in several file formats. Whenever a URL is found in a PHP, JSON, YAML, or properties file, PhpStorm will highlight it and allow you to click it to open it in a browser.
  • Running current files
    • Introduced an improved version of the Run Current File functionality that is available from the Run/Debug widget. The widget now features a secondary menu that offers applicable runners along with the Run with Parameters action, which lets you tune the run configuration parameters before running the file.
  • HTTP client improvements
    • Updated the HTTP client to support both WebSockets and GraphQL.
    • Improved the UX of the HTTP client. You can now select a run environment using an icon on the gutter.
    • Introduced a status bar in the Response view.
  • Changing the editor’s font size
    • You can now change the editor’s font size across all tabs using keyboard shortcuts. A useful Reset button has also been added to revert your font size changes back to the original size.
  • Support for Angular standalone components
    • Added support for Angular standalone components. PhpStorm now properly recognizes components, directives, and pipes marked as standalone: true.
  • Updates for Vue 3
    • Improved support for Vue 3. For example, it now understands type narrowing in v-if/else directives.
  • TypeScript 4.7 support
    • PhpStorm 2022.2 comes bundled with TypeScript 4.7, adding support for new language features like moduleSuffixes and ESM in Node.js. It will now automatically insert the .js extension to the import statement if the module is set to node16 or nodenext in your tsconfig.json file. Additionally, PhpStorm now supports the typesVersions field in package.json files.
  • JetBrains Runtime
    • With this release, PhpStorm is moving from JetBrains Runtime 11 (JBR11) to JetBrains Runtime 17 (JBR17). This will have the following effects:
      • A significant performance improvement that will make the IDE operate faster and more smoothly.
      • Better security, as JBR17 is based on the latest OpenJDK LTS.
      • Better rendering performance on Apple macOS, as JetBrains Runtime 17 leverages the Metal API.
      • Increased accessibility on macOS, as JBR17 features integration with the VoiceOver screen reader.
      • Further performance improvements thanks to the usage of the Vector API.
  • Markdown table of contents
    • Added a new Generate Table of Contents action that will make creating a table of contents for your Markdown files much more straightforward. You can use Alt+Insert, which brings up the Insert… popup. You can then select Table Of Contents, which will be generated automatically for you.
Mockery support

PhpStorm

リファクタリング、コード補完、実行時のコード分析、コード記述の生産性を向上する機能満載のPHP統合開発環境

PhpStormは、次の製品にも含まれています。

ご質問がありますか?

今すぐ JetBrains ライセンススペシャリストとライブ チャット