Skip to content

@phpstan-import-type is not recognized #14

Closed

Description

@mitelg

in our plugin loader a array shape is imported from another file -> https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Plugin/KernelPluginLoader/DbalKernelPluginLoader.php
-> https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Plugin/KernelPluginLoader/KernelPluginLoader.php

error message:

Property Shopware\Core\Framework\Plugin\KernelPluginLoader\DbalKernelPluginLoader::$pluginInfos[0] must be of type PluginInfo, associative array (key 'baseClass') given

Activity

  1. added a commit that references this issue on Aug 11, 2026
  2. rcalicdan commented on Aug 11, 2026

    @rcalicdan
    Member

    Already fix in 0.2.2 minor release and #17

  3. rcalicdan commented on Aug 12, 2026

    @rcalicdan
    Member

    hi @mitelg ,

    I've release a minor version release 0.3.0, this included support for typechecking magic method and property annotations and also fix a bug were generic bound fails on object pseudo type and treat the type as literal object string,

    Please update the composer version for the library,,

    cheers..

  4. mitelg commented on Aug 12, 2026

    @mitelg
    Author

    ah nice! I was about to report something regarding the object type 😁

    btw, you can follow my attempts here: shopware/shopware#19140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions