PHP Tools for Visual Studio are being continuously updated and improved with new features, always supporting latest Visual Studio and PHP. Today we are introducing version 1.21 and what is new in there.
With this release we have started supporting PHP 7.1 syntax. The version of PHP used by your project can be set in Project | Properties
, otherwise PHP Tools recognizes whether you are using PHP 7.1 automatically.
New multi-type catches, nullable types, void type and iterable type are recognized by the parser and our unique type analysis to provide better IntelliSense and code validation features. For more information about PHP 7.1 features and how we check compatibility between various PHP versions please see Code Validation#PHP 7.1.
We are happy to be Visual Studio Sim-Ship partner for several years already. With every new release of Visual Studio we are providing compatible version of PHP Tools. Since version 1.21 PHP Tools support VS 2017 which you can find in our Download Page.
There are several new code validation rules and features.
use
statements within your code are analysed whether they are used or not. Not used 'uses' are nicely dimmed as it is done in the C# editor.case
values within a single switch
.Except minor improvements in code analysis, we newly show a value of assigned-only variables in certain cases. Anyway there are more features coming in a future update..
Thanks to rich user's feedback we are continuously fixing issues and improving user experience. This release contains several memory optimizations, fixes rare cases in manual mapping of remote debugging, fixes UI of the Composer integration and fixes source code parsing.
Update now to the latest release and let us know what you think. We're always happy to receive feedback.