PHP Tools for Visual Studio v1.82.20082
Released: Sep 23, 2024
Aggiornamenti in v1.82.20082
Funzionalità
- Formatter Blank Lines Settings - The PHP code formatter has a whole new group of settings called
Blank Lines
for adjusting the blank lines between various kinds of code sections. You can adjust spaces above declarations, class bodies, comments, functions and more.
- Added more checks for parameters passed by-ref.
- Magic constants (
__METHOD__
, __PROPERTY__
, etc.) are checked if they are used in a correct context.
- Type inferring improvements,
@global
tag inherited from base if necessary.
- Updated integrated PHP manual, added
SimpleXmlElement::saveXml
.
class-string<T>
annotation is now respected when accessing static class members through an indirect type.
- When checking PSR-4 autoload rules, class names, and file names, there is now a Quick Fix for PSR-4 file name mismatch.
- Added a property access visibility check.
- Refactoring and find-references now resolve dynamic member access to get better results.
- Generic type arguments syntax now accepts
*
token.
- Improved type inferring.
Correzioni
- Fixed unwanted transformation of
FILTER_NULL_ON_FAILURE
constant to lowercase.
- Fixed binding of template type arguments in inferred types.
- Fixed variables completion inside double-quoted strings.
- Fixed mouse hover for typed const declaration.
- Fixed false warning for using
@extends
on interface.
- Fixed an issue when formatting complex expressions in array initializers.
- Fixed an issue where unwanted line wrapping occurred in code blocks during formatting.
- Fixed
object
type hint respecting structured object
phpdoc type hint.
- Code completion works after multiple
::
expression chain.
- Keeps
@internal
functions in packages cache (i.e. keeps them in IntelliSense).
- Fixed invalid type inferring after
is_numeric()
.
- Fixed incorrect refactoring suggestion of
A ? A : B
. Instead ?:
is correct.
- Fixed override checks with implicit nullables,
never
, and traits.
- Fixed use of
Function
keyword in a namespace name.
- Fixed use of
Collection<T>
with just a single generic type parameter.
- Fixed argument type check for
self
.
- Fixed use of
@suppress
above function or class.
- Fixed an issue causing unwanted spaces after formatting
require
and similar statements.
- Class constant and enum case checks are correctly case-sensitive.
- Diagnostics improvements: fixed
try
/finally
control flow and reachability analysis.
- Refactoring suggestion to change switch to match will now only occur for PHP 8 or greater.