PHP Tools for Visual Studio v1.80.19712

Released: May 22, 2024

v1.80.19712 中的更新

特性

  • Code Analysis and IntelliSense
    • Now respects /** @ignore $variablename */ so that if the $variablename is unused, the problem is not reported.
    • Supports more complex conditional return type, i.e. @return ($name is class-string ? T : bool).
    • Improved inline suggestion after namespace.
    • Added a diagnostic for possibly wrong foreach variables.
    • Override diagnostic now respects possible class_alias of the type hints.
    • Override diagnostic now underlines trait use, it the trait introduces an incompatible method.
    • Improved Type inferring.
    • Improved handling of invalid PHPDoc type annotations.
  • Code Actions
    • Added a new code action to change define to const if applicable.
    • Added a code action to fix invalid casing of string PHPDoc type hint.
  • Rename Refactorings
    • This update adds correct rename refactoring for function/class/constant aliases, and for generic template arguments including @type imports and aliases.
    • Correct rename for callbacks and symbols in PHPDoc comments have been implemented.
    • Rename refactoring has been cleaned up and partially re-implemented.
    • It is now possible to introduce rename refactoring for named arguments and namespaces.
  • Improved performance.
  • Optimized memory use.

修補程式

  • Fixed false unreachable code warning.
  • Formatter: Fixed unwanted space before named arguments which happens to be keywords as well.
  • Formatter: Fixed unwanted new line after chained method call.
  • Fixed override checks for static return types.