phpactor
phpactor copied to clipboard
Mainly a PHP Language Server with more features than you can shake a stick at
Hi, I'm noticing an issue with the following. ``` ... rest of code [, $enum2] = HelperFunc::MethodThatReturnsEnums($aggregation); return [$enum2->value, $enum2->enumMethod($arg)]; ... rest of code ``` In this example code MethodThatReturnsEnums...
For example, go to `lib/CodeTransform/Adapter/WorseReflection/Transformer/ImplementContracts.php` and find references to `$reflector` private property. Currently as a user I get notifications about scanning ~300 references  I started to debug what happens....
Co-authored-by: @mamazu Resolves #2562
Things that have been done * Completion for it works (tests added) * Check if there is a better way to generate the name of the anonymous classes Limitations: *...
Fix #2199
Hi, here is a code example, where PHPStan properly understands the returned type, but Phpactor not: ```php
I supose maybe is related with vscode configuration but when som imports (use) are not using, vscode don't show any difference like show it in gray. I searched in issues...
Hello! PHPStan supports [conditional return types](https://phpstan.org/writing-php-code/phpdoc-types#conditional-return-types)---it would be great if phpactor could understand this. Currently it looks like these are just typed as `null` Thanks!
Currently `PhpCodeSnifferSuggestExtension` and `LanguageServerPsalmSuggestExtension` ask if enable them because both `vimeo/psalm` and `squizlabs/php_codesniffer` are dependencies of Phpactor. We could remove these dependencies or configure them. Btw. https://github.com/squizlabs/PHP_CodeSniffer is abandoned in...