phptools-docs
phptools-docs copied to clipboard
PHP Tools public content
Type: Bug Noticed that (one of the) latest updates introduced an incorrect unreachable code notification. Simplified example code: ``` class Bug { final function foo() : void { $set =...
In this code:  the class `\vBP_Engine` does not exist. I meant to write `\vBP_Engine` but I forgot the back slash. However, the IDE didn't catch it and showed to...
VSCode 1.92.0 PHP Extension: v1.49.15818 (pre-release) Laravel 10.48.8 
Sometimes I rename a class but forget to rename the file. The editor does not warn me about it, but it results in a runtime error, since the class now...
I have a dev container setup for an app consisting of multiple docker containers (=> `.devcontainer.json` points to a `docker-compose.yml`) running on a Windows host using the WSL2 backend. The...
Hello, I'd love to have a feature where it shows and is able to remove unused constructor-based dependency injections (DI). For example: ``` public function __construct( private readonly \Some\Class $someClass,...

In the example below, the `*` character should be treated as a part of the type (currently it's not even highlighted). ```php class Foo { public const STATUS_OK = 200;...
Since PHPStan 1.11.0, it supports ignoring errors using identifiers (https://phpstan.org/user-guide/ignoring-errors). 1. When I type `@phps`, I would like to get autocomplete suggestion `@phpstan-ignore `, 2. When I type `@phpstan-ignore ar`,...
Currently when you hover over `public`, `return`, `function`, `if` etc. you see a hint like in the screenshot below:  This does not happen in...