PHP Tools for Visual Studio v1.70.16698
Released: Nov 10, 2022
v1.70.16698 中的更新
特性
- Editor:
- Highlighting Scoped Keywords - Added the ability to highlight scoped keywords such as 'while', 'do', 'for' and 'switch' with the corresponding break and continue.
- IntelliSense - Updated integrated language manual with more type information. This results in more precise IntellISense, type analysis and code diagnostics. The editor now supports false pseudo-type as a part of PHP union types.
- Inline Completion - Improved inline completions. When typing function getSometing, the rest of the getter method is now smartly completed, if there is a property $Something in the local class scope. The same with function setSomething.
- Laravel - New Laravel defaultAliases are now recognized implicitly. This allows IntelliSense to work out-of-the-box with Laravel aliased classes.
- New Diagnostics - Improved diagnostics in general and improved analysis performance:
- Added support for a reporting interface containing properties, which is not allowed in PHP.
- Type analysis now handles array type inferring, avoiding lots of false warnings.
- Added support for reporting invalid type in echo and concatenation expressions.
- Type analysis for array_map() is now more precise, if the "map" functions can be determined.
- It is now possible to use PHPDoc right above constructor property promotion, with just @var annotation.
- Improved analysis of define() with object.
- Doc Comments:
- Generated PHP Doc Comments have been improved. The generated code now complies with PSR-2 and PSR-12, contains more inherited type information and additional annotations.
- More PHPDoc Syntax - The PHP Editor now recognizes pseudo type never as well. In case you're annotating never-returning functions with the @return tag.
- Tool-Tips from PHPDoc - Improved tool-tips, which now render HTML annotations such as <b>, <code>, <br>, etc. properly.
- Microsoft Visual Studio:
- Improved support for Microsoft Visual Studio 2010 - 2017.
修补程序
- Fixed type annotations for various PHP constants (which have it incorrectly in the official PHP manual).
- Fake types such as false, null, and never are highlighted correctly as keywords in PHPDoc and type hints.
- Fixed highlighting of symbols within const initializers.
- Improved phpstorm meta file compatibility. Qualified names specified with forward slash are now recognized.
- Code compose is smart about getters and setters.
- Improved occurrence highlighting of template type arguments in PHPDoc.