August 2022 (version 1.67)
Welcome to the August 2022 release of PHP Tools for Visual Studio!
To-Do on Dark Theme
This release improves and updates color scheme of to-do comments on Dark Theme. It makes the the caret navigation more readable.
Code Completion has several neat new features and improvements to make the daily tasks easier.
- PHP 8.1
enumare now correctly handled, IntelliSense shows the implicit
enummembers in the list, type analysis respects the implicit
- Tooltips shows cleaner information. There are fixes in the case of trait aliased methods.
- More precise
statictype resolve, especially when defined in
- Variadic parameters handled correctly, added code analysis and type checks for variadic parameters.
- Overall improvements in type analysis.
- Not reporting correctly used
$thisin template files.
- Improves resolving of corresponding
userespects the already existing alias with the same name.
Auto-Importing of a namespace avoids creating conflict names in
Strict Types Checking
Newly, the code diagnostic respects the
strict_types directive. Whenever there is
declare(strict_types=1); code at the top of source file, implicit numeric conversions are treated strictly. Any conversion that would reduce the value precision is reported as a warning.
Unknown Property Diagnostic and Code Fix (
The code diagnostic for unknown properties has been introduced. In case there is no magic
__get() method, and it is not a
stdClass, the unknown property is reported in the editor, and the error list. Eventually a quick code action is provided, allowing to quickly insert the correct property name, if it can be inferred at the moment.
The quick code action fixes common typos and fixes letter casing.
Namespace Declaration Correctness (
We have added a code diagnostic that validates use of
namespace and other statements in the global code. Also it checks the user is not mixing short and long
Class Name Correctness (
There must not be same class names defined. The editor was already checking for that. Newly, it also checks aliases introduced with
use statement in combination with classes inside the current namespace. This reports names of
classes conflicting with a name already specified in a
The PHP Editor is getting a new feature called Code Compose. It is also known as inline suggestion. The editor is guessing the next word or a sequence of words you might type according to the context.
The suggestion is shown dimmed right in the code, and can be confirmed with
This will be extended in the future releases for more cases and suggestions.
There are numerous of fixes and small improvements:
- Fix: unused
usenot reported twice.
- Fixes word occurence highlighting stopped working.
Ctrl+F5(run without debug) allows to ignore issues about Xdebug.
F12(go to def) on an include/require navigates to the file.
- Several localized texts have fixed punctuation.
- Fixes code completion exception on VS 2022 (
- Memory optimizations.
- Internal fixes.