Skip to content

Commit dd5eb75

Browse files
author
klapaudius
committed
Merge remote-tracking branch 'origin/master'
2 parents 8c486da + 1b37a4c commit dd5eb75

File tree

8 files changed

+8
-12
lines changed

8 files changed

+8
-12
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v5
20+
uses: actions/checkout@v6
2121

2222
- name: Validate composer.json and composer.lock
2323
run: composer validate --strict

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v5
20+
uses: actions/checkout@v6
2121
with:
2222
ref: ${{ github.head_ref }}
2323

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: Checkout code
28-
uses: actions/checkout@v5
28+
uses: actions/checkout@v6
2929

3030
- name: Validate composer.json and composer.lock
3131
run: composer validate --strict

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)