PHP Tools for Visual Studio v1.69.16464

L'éditeur PHP respecte désormais les couleurs de Visual Studio et améliore plusieurs diagnostics de code.
Octobre 18, 2022
Nouvelle Version

Fonctionnalités

  • Interface and Enum Colors - The PHP Editor now respects Microsoft Visual Studio colors for Interface and Enum.
  • New Diagnostics - Added and updated several code diagnostics:
    • Added new PHP 8.2 compatibility diagnostics.
    • There is now a diagnostic for the invalid use of break; or continue when they are out of the allowed scope.
    • Diagnostic of function return has been improved in cases where there is a mixed type hint, but the function does not return anything.
    • Unknown properties now get reported.
      • Additionally, there is a new quick fix for unknown property, if there is a typo in the name.
      • stdClass and classes with __get() magic method are now ignored (as specified in the PHP 8.2 RFC).
    • Dynamic properties are now reported if there isn't a corresponding __get/__set, or @property annotation.
    • Duplicate field declaration is now reported.
    • Duplicate class constant declaration is now reported.
    • foreach control variables can now be annotated with a DocBlock.
    • Reporting anonymous functions with unused use variables.
    • Reporting empty namespaces.
    • Checking that value from a function returning void is being used.
    • Reports accessing a property on void.
    • Checks expressions in string interpolation are convertible to string.
    • Checks that type of a property is defined.
    • Checks if too many arguments passed to a function.
    • Added a check for duplicate modifiers in function, property, or constructor property declaration.
Interface and Enum Colors

PHP Tools for Visual Studio

Développez des sites Web PHP et des applications dans Visual Studio.

Vous avez une question ?

Discutez en direct avec l'un de nos spécialiste des licences DEVSENSE .