PHP Tools for Visual Studio v1.76.18866

Released: Dec 3, 2023

Aggiornamenti in v1.76.18866

Funzionalità

  • New PHP 8.3 syntax is now supported by the formatter.
  • Structured object Type: Dynamic objects can now be annotated within doc comment using object{property:type,} syntax.
  • Global @type Aliases: type aliases can be defined in the scope of entire file using doc comment @type, @phpstan-type, @phpstan-import-type, @psalm-type and @psalm-import-type. Previously, it only worked above classes and functions. Now it is also valid in a doc comments anywhere in the global file scope.
  • Improved list{} doc comment shape.
  • Added support for navigation and completion in @see tags when in a namespace.
  • array_multisort() now treats the first argument as strictly passed by reference.
  • Made go to and code completion of file paths improvements.
  • Formatting
    • Comments - In this update, improvements have been made to how comments are handled. Comments that follow after an expression are now preserved in their original positions, giving users the flexibility to indent them as they prefer.
    • Align match arm bodies - The formatter now offers "Align Match Arm Bodies" to align the bodies (results) within match expressions for enhanced code clarity and structure.

Correzioni

  • Fixed the wrapping behavior, ensuring that comments are maintained on their original lines when they follow an expression.
  • Fixed code indentation after applying "Implement abstracts" code action.
  • False named argument error in case the method accepts variadic arguments.
  • Fixed analysis of generators return type.
  • Fixed improper formatting when named argument as a keyword.
  • Fixed incorrect indentation inside constructor.
  • Visual Studio crash fixes.