-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support PSR-12 use statements #122
Comments
It should provided you have a use statement for the class you are type hinting. Have you got an example? |
Yes, here I send an example: <?php
namespace SkoreLabs\JsonApi\Http\Resources;
use Illuminate\Support\{Arr, Collection};
trait CollectsWithIncludes
{
/**
* Undocumented function
*
* @param Arr $arr
* @return void
*/
public function testFunction(Arr $arr)
{}
} |
Thanks for providing an example. It's because you are using the multiple use statement. Which isn't PSR-2 so I never do it and thus never implemented it. But it probably is possible to do this as well and the package should probably support it. |
Hope to support as soon as possible. https://www.php-fig.org/psr/psr-12/ for example: Thank you very much. @neild3r |
@tianyiw2013 there is already a config option for this |
ok. But, I suggest that default to |
When enable fully qualify class names on the extension settings the extension doesn't get the full PSR-12 namespaces (implemented on the PHP intelephense extension)
The text was updated successfully, but these errors were encountered: