PhpStorm 2018.2

Released: Jul 30, 2018

Actualizaciones en 2018.2

Características

  • Completion
    • Custom postfix completion templates - Add custom postfix completion templates. Create templates to match your project and your personal coding style.
    • FQCN Completion - Completion now matches the namespace in addition to the element name. You don’t have to type or invoke completion for each part of \Illuminate\Auth\Events anymore - just type IAuE instead.
  • Refactorings
    • Move Instance Method Refactoring - For handling the methods that cannot be made static or moved across the class hierarchy, PhpStorm 2018.2 introduces a refactoring that allows you to move an instance method to a parameter class or to a field class.
  • PHP Language
    • Structural Search and Replace - Now you can specify the type of Structural variable, which lets you, for example, find a call to the specific method where the first parameter is a string. You can use a simple pattern to find a foreach loop with an unconditional return statement, or even create your own inspection that will capture an unnecessarily double-quoted string, if your code style enforces this.
    • Improved SQL Injections - PhpStorm can now substitute the values of constants directly within the injected string, so you can run a query without copy-pasting their values. In addition, it adds support for SQL strings that use sprintf parameters.
  • New Inspections and Quick Fixes
    • Extension is missing in composer.json reports usages of classes/functions/constants from PHP extensions which are not specified in composer.json.
    • Non-canonical order of elements in PHPDoc reports tags such as @property, @param, @var, etc. that use a non-canonical order of elements e.g. name Type instead of Type name.
    • Optional parameter before required parameter detects situations when an optional parameter appears before required parameters in a function/method declaration.
  • Web Technologies Support
    • New JavaScript Intentions - PhpStorm includes several new intentions that are available when you press Alt-Enter. Here are just some of them: Implement interface, Create derived class, Implement members of an interface or abstract class, Generate cases for switch, and Iterate with for..of.
    • Completion for events in Vue.js - In Vue templates, PhpStorm now provides code completion for events.
  • IDE Improvements
    • Updated UI - Brand new icons and dark title bars on macOS. Furthermore, PhpStorm 2018.2 brings support for the MacBook Touch Bar. Run and debug your project, commit changes, and update the project right from the Touch Bar.
  • VCS
    • Easier resolve of merge conflicts.
    • Enhancements in VCS Log tab.
    • Browse repository at revision.
    • Multiple GitHub accounts.
    • Skip the Push dialog.
  • Database Tools - Database tools in PhpStorm have been improved thanks to our colleagues from the DataGrip team:
    • New SQL formatter.
    • Source code migrations.
    • Query plan diagram.
    • Custom data source.
  • Other improvements:
    • Customizable value for $_SERVER['DOCUMENT_ROOT'].
    • Simple CodeSniffer/MessDetector setup.
    • The new presentation for Quick Documentation.
    • Allow renaming old style constructor to the new style.
    • Add method quick fix now inserts parameter type hints.
    • PHPUnit composite configuration.
    • Jump outside closing bracket/quote with Tab.
    • HTTP Client: Support environment variables in the request body.
    • HTTP Client: Support formatting of POST request body.
    • Docker: navigate from compose nodes and containers.
    • Docker: wrapping words in Docker logs.