File tree Expand file tree Collapse file tree 8 files changed +8
-12
lines changed
Expand file tree Collapse file tree 8 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
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:
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 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
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:
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments