phptools-docs
phptools-docs copied to clipboard
PHP Tools public content
Weird indentation happening in blade files. I purchased a license, hoping that whould fix it, but not. So, I'm here looking for help. This is the code before phptools to...
Given the following code: ```
This is wrong:  that should say "0 references".
This is an absolute disaster. I have this code:  My cursor, as can be seen, is right before the `is_array()` call in the first `if` condition. I want to...
There is an error that occurs in the extension where it reports that the class name should be lowercase, or the filename should be the same as the class. Using...
Code: ```php namespace Test { #[\AllowDynamicProperties] final class DynamicTemplate { } $template = new DynamicTemplate(); echo $template->bar; # Undefined property: DynamicTemplate::$bar PHP0416 final class MagicTemplate { public function __get(string $name):...
https://phpstan.org/writing-php-code/phpdoc-types#offset-access ```php
``` public function actionDefault(): never # 'actionDefault': not all code paths return a value { $this->error(); } ``` Rule `not all code paths return a value` should not report functions...
Perhaps a similar feature could be implemented the same way js does:  