We are happy to announce the public availability of updated PHP Tools for Visual Studio. The release brings features and enhancements for developing in PHP using Microsoft Visual Studio.
The editor supports the entire (so-far known) PHP 8.0 syntax, including
match expression, null-safe operator
?->, throw expression, constructor properties,
catch without a variable, etc. The IntelliSense and code diagnostics are fully aware of PHP 8.0 and will help you to take advantage of the new features in the future. In case, you don't have a beta release of PHP on your PC yet, the editor will report the new constructs as unsupported.
Since the Visual Studio 2019, the Error List shows all the problems across the entire project. Although, it might get overwhelming. Either some of the issues might be known and ignored, or they might be caused by a package you use and you can't fix it anyway. Sometimes, developers want the exact opposite - all the informational diagnostics to be reported strictly as errors, for example within your test files or in a crucial part of the code base.
Now all the diagnostics can be filtered and their severity configured using the
.editorconfig file. Read more about the configuration at https://docs.devsense.com/en/vs/code%20validation/configuration.
Tests are crucial part of the project development. The PHP editor will now analyze and provide IntelliSense to
@dataProvider tags used by PHPUnit.The feature provides tool tips, reports non-existing data provider function, or completes the data provider name for you.
Since the Visual Studio 2019, you can jump to the list of implementations of a function, interface or a class. This is a useful command allowing to list all the overrides and extended classes with from the editor.
There are tons of new features added recently. The interesting ones are:
The latest updates fix hundreds of issues, improve stability and performance. We strongly encourage to check out the changelog at devsense.com/download, and update your PHP Tools to the latest version.