php-sdk/tests/Unit/Capability/Discovery
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mateu Aguiló Bosch 73e4cc2456
style: apply php-cs-fixer and PHPStan fixes (#289)
* style: apply php-cs-fixer to test files

Addresses drift flagged by the default PHP-CS-Fixer config — mostly
adds missing `: void` return types on pre-existing test methods.

No behavioural changes.

* fix: resolve phpstan errors surfaced by qa

- Drop the obsolete `Method ::test*() has no return type specified`
  ignore rule — every test method now declares a return type, so
  the pattern never matches and phpstan reports it as unmatched.
- Remove `?? []` from two reads of `CallToolRequest::$arguments`;
  the property is typed `array` (non-nullable), so the coalesce is
  a no-op that phpstan flags.

---------

Co-authored-by: DDEV User <nobody@example.com>
2026-04-20 20:49:15 +02:00
..
Fixtures style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
CachedDiscovererTest.php fix: because the cached discoveryState does not use ->setDiscoveryState(), it is found that the discoveryState cannot be used (#120) 2025-10-26 23:25:09 +01:00
DiscoveryTest.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
DocBlockParserTest.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
DocBlockTestFixture.php feat: Add output schema support to MCP tools (#153) 2026-01-11 21:14:48 +01:00
HandlerResolverTest.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
SchemaGeneratorFixture.php feat: Add output schema support to MCP tools (#153) 2026-01-11 21:14:48 +01:00
SchemaGeneratorTest.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
SchemaValidatorTest.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00