Add missing ConfigurationException and update PHPStan baseline (#31)

- Add ConfigurationException class in src/Exception/ConfigurationException.php
- Update ServerBuilder to use the new ConfigurationException
- Regenerate PHPStan baseline to account for the new exception class,
  reducing errors from 160+ to 124
This commit is contained in:
Oskar Stark 2025-09-04 23:43:12 +02:00 • committed by GitHub
commit a7ddc11844
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -558,12 +558,6 @@ parameters:
count: 1
path: src/Server/RequestHandler/ListToolsHandler.php
-
message: '#^Instantiated class Mcp\\Server\\ConfigurationException not found\.$#'
identifier: class.notFound
count: 4
path: src/Server/ServerBuilder.php
-
message: '#^Method Mcp\\Server\\ServerBuilder\:\:getCompletionProviders\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
@ -701,9 +695,3 @@ parameters:
identifier: property.onlyWritten
count: 1
path: src/Server/ServerBuilder.php
-
message: '#^Throwing object of an unknown class Mcp\\Server\\ConfigurationException\.$#'
identifier: class.notFound
count: 4
path: src/Server/ServerBuilder.php