Skip to content

Commit 0cf0992

Browse files
committed
CS update after release of v3.95
1 parent 863cfc1 commit 0cf0992

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+132
-214
lines changed

.php-cs-fixer.dist.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
->setRules([
3232
'@Symfony' => true,
3333
'@Symfony:risky' => true,
34-
'protected_to_private' => false,
35-
'declare_strict_types' => false,
3634
'header_comment' => ['header' => $fileHeader],
3735
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
3836
])

examples/client/http_client_communication.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the official PHP MCP SDK.
5+
*
6+
* A collaboration between Symfony and the PHP Foundation.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
/**
413
* HTTP Client Communication Example.
514
*
@@ -20,17 +29,6 @@
2029
* Eg. symfony serve --passthru=examples/server/client-communication/server.php --no-tls
2130
*/
2231

23-
declare(strict_types=1);
24-
25-
/*
26-
* This file is part of the official PHP MCP SDK.
27-
*
28-
* A collaboration between Symfony and the PHP Foundation.
29-
*
30-
* For the full copyright and license information, please view the LICENSE
31-
* file that was distributed with this source code.
32-
*/
33-
3432
require_once __DIR__.'/../../vendor/autoload.php';
3533

3634
use Mcp\Client;

examples/client/http_discovery_calculator.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the official PHP MCP SDK.
5+
*
6+
* A collaboration between Symfony and the PHP Foundation.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
/**
413
* HTTP Client Example.
514
*
@@ -12,17 +21,6 @@
1221
* php -S localhost:8080 examples/server/http-discovery-calculator/server.php
1322
*/
1423

15-
declare(strict_types=1);
16-
17-
/*
18-
* This file is part of the official PHP MCP SDK.
19-
*
20-
* A collaboration between Symfony and the PHP Foundation.
21-
*
22-
* For the full copyright and license information, please view the LICENSE
23-
* file that was distributed with this source code.
24-
*/
25-
2624
require_once __DIR__.'/../../vendor/autoload.php';
2725

2826
use Mcp\Client;

examples/client/stdio_client_communication.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the official PHP MCP SDK.
5+
*
6+
* A collaboration between Symfony and the PHP Foundation.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
/**
413
* STDIO Client Communication Example.
514
*
@@ -11,17 +20,6 @@
1120
* Usage: php examples/client/stdio_client_communication.php
1221
*/
1322

14-
declare(strict_types=1);
15-
16-
/*
17-
* This file is part of the official PHP MCP SDK.
18-
*
19-
* A collaboration between Symfony and the PHP Foundation.
20-
*
21-
* For the full copyright and license information, please view the LICENSE
22-
* file that was distributed with this source code.
23-
*/
24-
2523
require_once __DIR__.'/../../vendor/autoload.php';
2624

2725
use Mcp\Client;

examples/client/stdio_discovery_calculator.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
<?php
22

3-
/**
4-
* Simple STDIO Client Example.
5-
*
6-
* This example demonstrates how to use the MCP client with a STDIO transport
7-
* to communicate with an MCP server running as a child process.
8-
*
9-
* Usage: php examples/client/stdio_discovery_calculator.php
10-
*/
11-
12-
declare(strict_types=1);
13-
143
/*
154
* This file is part of the official PHP MCP SDK.
165
*
@@ -20,6 +9,15 @@
209
* file that was distributed with this source code.
2110
*/
2211

12+
/**
13+
* Simple STDIO Client Example.
14+
*
15+
* This example demonstrates how to use the MCP client with a STDIO transport
16+
* to communicate with an MCP server running as a child process.
17+
*
18+
* Usage: php examples/client/stdio_discovery_calculator.php
19+
*/
20+
2321
require_once __DIR__.'/../../vendor/autoload.php';
2422

2523
use Mcp\Client;

examples/server/cached-discovery/CachedCalculatorElements.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
4-
53
/*
64
* This file is part of the official PHP MCP SDK.
75
*

examples/server/cached-discovery/server.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env php
22
<?php
33

4-
declare(strict_types=1);
5-
64
/*
75
* This file is part of the official PHP MCP SDK.
86
*

examples/server/elicitation/ElicitationHandlers.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
4-
53
/*
64
* This file is part of the official PHP MCP SDK.
75
*

examples/server/elicitation/server.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env php
22
<?php
33

4-
declare(strict_types=1);
5-
64
/*
75
* This file is part of the official PHP MCP SDK.
86
*

examples/server/oauth-keycloak/McpElements.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
4-
53
/*
64
* This file is part of the official PHP MCP SDK.
75
*

0 commit comments

Comments
 (0)