PHP Tools for Visual Studio v1.78.19088

Released: Jan 14, 2024

Aggiornamenti in v1.78.19088

Funzionalità

  • IntelliPHP in Microsoft Visual Studio 2019
    • Added local AI suggestions to Microsoft Visual Studio 2019.
  • Refactorings
    • Added support for refactoring of private properties.
    • Added support for refactoring of property names specified inside property_exists() function.
    • Added new quick refactorings.
  • Completion for $GLOBALS and $_SERVER
    • Array keys for variables, and super-global variables are now listed in code completion.
  • Custom Formatting and Code Styles
    • Added Global options (Tools/Options - Text Editor/PHP) which allow for more detailed settings.
    • Added a few more custom format settings.
  • Improvements
    • Doc Block with multi-line array<> syntax is now supported.
    • Doc Block with @psalm-type definition using = character is now supported.
    • Doc Block with @var defining a type of whole expression (not just a variable) is now handled.
    • Type analysis has been improved in case there are a lot of array types with key names.
    • Type analysis now handles complex L-value of instanceof operator.
    • Type analysis has been improved in cases where there are a lot of array types with key names.
    • Improved handling of global variables in WordPress source code.
    • Improved code completion for array keys, type inferring for array entries, and array keys for $_SERVER and $GLOBALS.
    • Improved array_unshift() type analysis.
    • Improved detection and completion for eloquent local scopes.
    • WordPress's structured array/object doc comment syntax is now recognized and respected by code analysis and code completion.
    • Added a diagnostic for ${} deprecated string interpolation and corresponding code action.
    • Improved resolution of methods returning static/$this.
    • Various code analysis improvements.
    • Memory usage optimizations, and general performance improvements.

Correzioni

  • Stability fixes for Stack Overflow Exception (happens in Symfony framework).
  • Fixed generating implementation for abstract methods and interfaces.
  • Workarounds diagnostics in incorrectly generated type names in _ide_helper.php.
  • Updated PHP parser to handle keywords in PHP8+ FQN namespace syntax.
  • Fixed false diagnostics of unreachable code.
  • Not reporting unknown property if it was checked with property_exists().
  • Fixed inlay hints in ambiguous function calls (a function defined in two places or opened in two files).
  • Crash fixes.