Skip to content

Commit e09cbb9

Browse files
klapaudiusgithub-actions[bot]
authored andcommitted
Fix styling
1 parent c89c99c commit e09cbb9

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

src/Services/PromptService/Examples/ExamplePromptProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
*
3232
* ALTERNATIVE APPROACH: Return prompt class names.
3333
* WARNING: This requires prompts to be registered as public services.
34-
*
3534
* @example Returning class names (NOT RECOMMENDED - requires public services):
3635
* ```php
3736
* public function getPrompts(): iterable
@@ -54,7 +53,6 @@
5453
* - ✅ Better performance (prompts instantiated once during compilation)
5554
* - ✅ Type safety with constructor injection
5655
* - ✅ Follows Symfony best practices
57-
*
5856
* @example Registration in services.yaml:
5957
* ```yaml
6058
* services:

src/Services/PromptService/PromptRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ class PromptRepository
3131
/**
3232
* The logger instance.
3333
*/
34-
protected LoggerInterface|null $logger;
34+
protected ?LoggerInterface $logger;
3535

3636
/**
3737
* Constructor.
3838
*
3939
* @param ContainerInterface $container The Symfony service container.
4040
* @param LoggerInterface|null $logger Optional logger instance for debugging prompt registration.
4141
*/
42-
public function __construct(ContainerInterface $container, LoggerInterface|null $logger = null)
42+
public function __construct(ContainerInterface $container, ?LoggerInterface $logger = null)
4343
{
4444
$this->container = $container;
4545
$this->logger = $logger;

src/Services/ResourceService/Examples/ExampleResourceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
*
3232
* ALTERNATIVE APPROACH: Return resource class names.
3333
* WARNING: This requires resources to be registered as public services.
34-
*
3534
* @example Returning class names (NOT RECOMMENDED - requires public services):
3635
* ```php
3736
* public function getResources(): iterable
@@ -54,7 +53,6 @@
5453
* - ✅ Better performance (resources instantiated once during compilation)
5554
* - ✅ Type safety with constructor injection
5655
* - ✅ Follows Symfony best practices
57-
*
5856
* @example Registration in services.yaml:
5957
* ```yaml
6058
* services:

src/Services/ResourceService/ResourceRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ class ResourceRepository
3737
/**
3838
* The logger instance.
3939
*/
40-
protected LoggerInterface|null $logger;
40+
protected ?LoggerInterface $logger;
4141

4242
/**
4343
* Constructor.
4444
*
4545
* @param ContainerInterface $container The Symfony service container. If null, it resolves from the facade.
4646
* @param LoggerInterface|null $logger Optional logger instance for debugging resource registration.
4747
*/
48-
public function __construct(ContainerInterface $container, LoggerInterface|null $logger = null)
48+
public function __construct(ContainerInterface $container, ?LoggerInterface $logger = null)
4949
{
5050
$this->container = $container;
5151
$this->logger = $logger;

tests/Server/MCPServerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ public function test_register_sampling_response_handler_with_client(): void
655655

656656
$mockProtocol->expects($this->once())
657657
->method('registerResponseHandler')
658-
->with($this->callback(function ($arg) use ($mockSamplingClient, $mockLogger) {
658+
->with($this->callback(function ($arg) {
659659
$this->assertInstanceOf(SamplingResponseHandler::class, $arg);
660660

661661
return true;

0 commit comments

Comments
 (0)