viperet / vscode-magento-wizard

Helps develop Magento 2 extensions using VSCode
36 stars 16 forks source link

Class Property for injected dependency has incorrect phpdoc tag #34

Closed TzviCons closed 2 years ago

TzviCons commented 2 years ago

When I use the inject dependency, the new class property added has a docblock @param. It should be @var.

Sample below was produced by the MagentoWizard vscode extension:

    /**
     * @param \Psr\Log\LoggerInterface
     */
    private $logger;

    public function __construct(
        \Psr\Log\LoggerInterface $logger

    ) {
        $this->logger = $logger;
    }
viperet commented 2 years ago

Fixed, thanks for PR