127 lines
4.9 KiB
Text
127 lines
4.9 KiB
Text
parameters:
|
|
ignoreErrors:
|
|
-
|
|
message: '#^Call to static method invalidParams\(\) on an unknown class Mcp\\Example\\HttpUserProfileExample\\McpServerException\.$#'
|
|
identifier: class.notFound
|
|
count: 2
|
|
path: examples/02-discovery-http-userprofile/McpElements.php
|
|
|
|
-
|
|
message: '#^PHPDoc tag @throws with type Mcp\\Example\\HttpUserProfileExample\\McpServerException is not subtype of Throwable$#'
|
|
identifier: throws.notThrowable
|
|
count: 2
|
|
path: examples/02-discovery-http-userprofile/McpElements.php
|
|
|
|
-
|
|
message: '#^Call to an undefined method Mcp\\Capability\\Registry\\ResourceTemplateReference\:\:handle\(\)\.$#'
|
|
identifier: method.notFound
|
|
count: 1
|
|
path: src/Capability/Registry/ResourceTemplateReference.php
|
|
|
|
-
|
|
message: '#^PHPDoc tag @return with type array is incompatible with native type object\.$#'
|
|
identifier: return.phpDocType
|
|
count: 1
|
|
path: src/Schema/Result/EmptyResult.php
|
|
|
|
-
|
|
message: '#^Method Mcp\\Schema\\Result\\ReadResourceResult\:\:jsonSerialize\(\) should return array\{contents\: array\<Mcp\\Schema\\Content\\BlobResourceContents\|Mcp\\Schema\\Content\\TextResourceContents\>\} but returns array\{contents\: array\<Mcp\\Schema\\Content\\ResourceContents\>\}\.$#'
|
|
identifier: return.type
|
|
count: 1
|
|
path: src/Schema/Result/ReadResourceResult.php
|
|
|
|
-
|
|
message: '#^Method Mcp\\Server\\ServerBuilder\:\:addPrompt\(\) has parameter \$handler with no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Method Mcp\\Server\\ServerBuilder\:\:addResource\(\) has parameter \$handler with no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Method Mcp\\Server\\ServerBuilder\:\:addResourceTemplate\(\) has parameter \$handler with no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Method Mcp\\Server\\ServerBuilder\:\:addTool\(\) has parameter \$handler with no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Method Mcp\\Server\\ServerBuilder\:\:addTool\(\) has parameter \$inputSchema with no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
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
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Method Mcp\\Server\\ServerBuilder\:\:setDiscovery\(\) has parameter \$excludeDirs with no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Method Mcp\\Server\\ServerBuilder\:\:setDiscovery\(\) has parameter \$scanDirs with no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Property Mcp\\Server\\ServerBuilder\:\:\$discoveryExcludeDirs type has no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Property Mcp\\Server\\ServerBuilder\:\:\$instructions is never read, only written\.$#'
|
|
identifier: property.onlyWritten
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Property Mcp\\Server\\ServerBuilder\:\:\$paginationLimit \(int\|null\) is never assigned null so it can be removed from the property type\.$#'
|
|
identifier: property.unusedType
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Property Mcp\\Server\\ServerBuilder\:\:\$paginationLimit is never read, only written\.$#'
|
|
identifier: property.onlyWritten
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Property Mcp\\Server\\ServerBuilder\:\:\$prompts type has no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Property Mcp\\Server\\ServerBuilder\:\:\$resourceTemplates type has no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Property Mcp\\Server\\ServerBuilder\:\:\$resources type has no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|
|
|
|
-
|
|
message: '#^Property Mcp\\Server\\ServerBuilder\:\:\$tools type has no value type specified in iterable type array\.$#'
|
|
identifier: missingType.iterableValue
|
|
count: 1
|
|
path: src/Server/ServerBuilder.php
|