[Enhancement] Add void return type to load() method
Current Behavior
The load() method in PhpSpreadsheetExtension doesn't have a return type declaration, which causes warnings in Symfony 6.4.
Expected Behavior
The load() method should have a void return type declaration to maintain compatibility with Symfony 6.4.
Warning Message
"Method "Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()" might add "void" as a native return type declaration in the future. Do the same in implementation "Yectep\PhpSpreadsheetBundle\DependencyInjection\PhpSpreadsheetExtension" now to avoid errors or add an explicit @return annotation to suppress this message."
Proposed Solution
Add void return type to the load() method:
public function load(array $configs, ContainerBuilder $container): void
{
// existing code
}
[Enhancement] Add void return type to load() method
Current Behavior
The
load()method inPhpSpreadsheetExtensiondoesn't have a return type declaration, which causes warnings in Symfony 6.4.Expected Behavior
The
load()method should have a void return type declaration to maintain compatibility with Symfony 6.4.Warning Message
"Method "Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()" might add "void" as a native return type declaration in the future. Do the same in implementation "Yectep\PhpSpreadsheetBundle\DependencyInjection\PhpSpreadsheetExtension" now to avoid errors or add an explicit @return annotation to suppress this message."
Proposed Solution
Add void return type to the
load()method: