Skip to content

Documentation for loading config in bundles produces a Psalm v5 error ParamNameMismatch #17795

Closed
@dkarlovi

Description

@dkarlovi
ERROR: ParamNameMismatch - src/DependencyInjection/MyExtension.php:20:59 - Argument 2 of MyExtension::load has wrong name $containerBuilder, expecting $container as defined by Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load (see https://psalm.dev/230)
    public function load(array $configs, ContainerBuilder $containerBuilder): void

Example given here:

    public function load(array $configs, ContainerBuilder $containerBuilder)
    {
        // ... you'll load the files here later
    }

The param is currently indeed called $container.

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