phptools-docs
phptools-docs copied to clipboard
PHP Tools public content
The [generics by example](https://phpstan.org/blog/generics-by-examples#function-accepts-any-string%2C-but-returns-object-of-the-same-type-if-it%E2%80%99s-a-class-string) article on phpstan.org includes the following example of generic return types: ```php class Container { /** * @template T of object * @return ($name is class-string...
Hi, the `pathMappings` configuration in `launch.json` not working in visual code. When the test finished as failure it doesn't show output error and open the file with remote path. Here...
 I think the title and the screenshot say it all.
Hello, @jakubmisek, I am looking for a solution for `Go to Definition` specifically for OpenCart framework. When I use F12, I can't go to definition which is expected. Because of...
 There's no warning whatsoever for calling a protected method from an unrelated class. In reality this will throw an error at runtime. Example code: ```
Using the latest vscode version, php-html code folding suddenly disappears. Disabling the plugin fixes the issue. Please fix. VSCode Version: 1.86.0 (user setup) Commit: 05047486b6df5eb8d44b2ecd70ea3bdf775fd937 Date: 2024-01-31T10:28:19.990Z Electron: 27.2.3 ElectronBuildId:...
 Most, if not all, of the `use` statements above were added automatically by using autocomplete. That is, when I used any of those types for the first time, I...
This is just one particular case of something that happens all the time: the autocomplete failing to show expected suggestions. Here:  I'm in the process of typing this call:...
I have included PHP extension in the recommendations for the [VSCode setup for Moodle development](https://github.com/lmscloud-io/mdlcode-docs/blob/main/docs/setup.md) . Moodle as a product started over 20 years ago and some architectural decisions from...
Static analysis support for the [`#[\Override]`](https://wiki.php.net/rfc/marking_overriden_methods) attribute introduced in PHP [8.3](https://www.php.net/releases/8.3/en.php#override_attribute) would be great.