Skip to content

Symfony 6 stubs are not enabled on Symfony 7 #347

Closed
@Mika56

Description

@Mika56

Hello,

This package provides specific stubs for Symfony 5 and Symfony 6.
However, when using Symfony 7, no version-specific stubs are loaded, but it looks to me like Symfony 6 stubs should be compatible.

This yields to issues like this:

ERROR: MixedAssignment - src/Controller/EncryptionController.php:21:13 - Unable to determine the type that $data is being assigned to (see https://psalm.dev/032)
            $data = $form->getData();

  The type of $data is sourced from here - vendor/psalm/plugin-symfony/src/Stubs/common/Component/Form/FormInterface.stubphp:12:22
     * @psalm-return ?T

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions