Skip to content

Fixed extension doc typehint#40

Merged
adamwojs merged 1 commit intomainfrom
fix-extension-doc-typehint
Oct 14, 2025
Merged

Fixed extension doc typehint#40
adamwojs merged 1 commit intomainfrom
fix-extension-doc-typehint

Conversation

@ViniTou
Copy link
Contributor

@ViniTou ViniTou commented Oct 14, 2025

🎫 Issue IBX-XXXXX

Description:

symfony now typehints\Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load method in following way

    /**
     * Loads a specific configuration.
     *
     * @param array<array<mixed>> $configs
     *
     * @return void
     *
     * @throws \InvalidArgumentException When provided tag is not defined in this extension
     */
    public function load(array $configs, ContainerBuilder $container);

which results in

Parameter #1 $configs (array<string, mixed>) of method BUNDLEExtension::load() should be contravariant with parameter $configs (array<mixed>) of method Symfony\Component\DependencyInjection\Extens  
         ion\ExtensionInterface::load()  

For QA:

Documentation:

@ViniTou ViniTou changed the title Fix extension doc typehint Fixed extension doc typehint Oct 14, 2025
@sonarqubecloud
Copy link

@adamwojs adamwojs merged commit 01185ab into main Oct 14, 2025
4 of 5 checks passed
@adamwojs adamwojs deleted the fix-extension-doc-typehint branch October 14, 2025 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants