Skip to content

Commit f7d6a16

Browse files
author
klapaudius
committed
Add void return type to process methods in CompilerPasses
Explicitly define the return type as `void` for the `process` methods in `ToolsDefinitionCompilerPass` and `ResourcesDefinitionCompilerPass`. This enhances code clarity and aligns with modern PHP best practices.
1 parent 6cea952 commit f7d6a16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DependencyInjection/CompilerPass/ResourcesDefinitionCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
final class ResourcesDefinitionCompilerPass implements CompilerPassInterface
1515
{
16-
public function process(ContainerBuilder $container)
16+
public function process(ContainerBuilder $container): void
1717
{
1818
$resources = $container->getparameter('klp_mcp_server.resources');
1919
// Register each resource as a service in the container if not already defined

src/DependencyInjection/CompilerPass/ToolsDefinitionCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
final class ToolsDefinitionCompilerPass implements CompilerPassInterface
1515
{
16-
public function process(ContainerBuilder $container)
16+
public function process(ContainerBuilder $container): void
1717
{
1818
$tools = $container->getparameter('klp_mcp_server.tools');
1919
// Register each tool as a service in the container if not already defined

0 commit comments

Comments
 (0)