phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

PHP Tools public content

Results 215 phptools-docs issues
Sort by recently updated
recently updated
newest added

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: ![image](https://github.com/user-attachments/assets/fa491dab-8cfe-481b-840e-24b083fc7076) 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 ![image](https://github.com/user-attachments/assets/3cdb8975-e7df-48cb-8b58-62746017768b)

bug

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,...

![image](https://github.com/user-attachments/assets/85c22d0e-f21e-4e65-8ce0-e2bacbb1fe2f)

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: ![CleanShot 2024-07-29 at 13 20 44@2x](https://github.com/user-attachments/assets/adc4022e-e8d4-4599-97a3-fc082413bd68) This does not happen in...