Skip to content

Commit 0ca952b

Browse files
committed
ignore some phpstan errors
1 parent 32f2de9 commit 0ca952b

File tree

1 file changed

+36
-18
lines changed

1 file changed

+36
-18
lines changed

phpstan-baseline.neon

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -367,59 +367,77 @@ parameters:
367367
path: examples/08-schema-showcase-streamable/server.php
368368

369369
-
370-
message: '#^Parameter \#1 \$registry of class Mcp\\Server\\RequestHandler\\CallToolHandler constructor expects Mcp\\Capability\\Registry, Mcp\\Capability\\ToolChain given\.$#'
370+
message: '#^Parameter \#1 \$registry of class Mcp\\Server\\RequestHandler\\ListPromptsHandler constructor expects Mcp\\Capability\\Registry\\ReferenceProviderInterface, Mcp\\Capability\\PromptChain given\.$#'
371371
identifier: argument.type
372372
count: 1
373373
path: examples/09-standalone-cli/src/Builder.php
374374

375375
-
376-
message: '#^Parameter \#1 \$registry of class Mcp\\Server\\RequestHandler\\GetPromptHandler constructor expects Mcp\\Capability\\Registry, Mcp\\Capability\\PromptChain given\.$#'
376+
message: '#^Parameter \#1 \$registry of class Mcp\\Server\\RequestHandler\\ListResourcesHandler constructor expects Mcp\\Capability\\Registry\\ReferenceProviderInterface, Mcp\\Capability\\ResourceChain given\.$#'
377377
identifier: argument.type
378378
count: 1
379379
path: examples/09-standalone-cli/src/Builder.php
380380

381381
-
382-
message: '#^Parameter \#1 \$registry of class Mcp\\Server\\RequestHandler\\ListPromptsHandler constructor expects Mcp\\Capability\\Registry, Mcp\\Capability\\PromptChain given\.$#'
382+
message: '#^Parameter \#1 \$registry of class Mcp\\Server\\RequestHandler\\ListToolsHandler constructor expects Mcp\\Capability\\Registry\\ReferenceProviderInterface, Mcp\\Capability\\ToolChain given\.$#'
383383
identifier: argument.type
384384
count: 1
385385
path: examples/09-standalone-cli/src/Builder.php
386386

387387
-
388-
message: '#^Parameter \#1 \$registry of class Mcp\\Server\\RequestHandler\\ListResourcesHandler constructor expects Mcp\\Capability\\Registry, Mcp\\Capability\\ResourceChain given\.$#'
389-
identifier: argument.type
388+
message: '#^PHPDoc tag @return with type array is incompatible with native type object\.$#'
389+
identifier: return.phpDocType
390390
count: 1
391-
path: examples/09-standalone-cli/src/Builder.php
391+
path: src/Schema/Result/EmptyResult.php
392392

393393
-
394-
message: '#^Parameter \#1 \$registry of class Mcp\\Server\\RequestHandler\\ListToolsHandler constructor expects Mcp\\Capability\\Registry, Mcp\\Capability\\ToolChain given\.$#'
395-
identifier: argument.type
394+
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\>\}\.$#'
395+
identifier: return.type
396396
count: 1
397-
path: examples/09-standalone-cli/src/Builder.php
397+
path: src/Schema/Result/ReadResourceResult.php
398398

399399
-
400-
message: '#^Parameter \#1 \$registry of class Mcp\\Server\\RequestHandler\\ReadResourceHandler constructor expects Mcp\\Capability\\Registry, Mcp\\Capability\\ResourceChain given\.$#'
401-
identifier: argument.type
400+
message: '#^Result of && is always false\.$#'
401+
identifier: booleanAnd.alwaysFalse
402402
count: 1
403-
path: examples/09-standalone-cli/src/Builder.php
403+
path: src/Server/RequestHandler/ListResourcesHandler.php
404404

405405
-
406-
message: '#^PHPDoc tag @return with type array is incompatible with native type object\.$#'
407-
identifier: return.phpDocType
406+
message: '#^Method Mcp\\Capability\\Registry\\ReferenceProviderInterface\:\:getPrompts\(\) invoked with 2 parameters, 0 required\.$#'
407+
identifier: arguments.count
408408
count: 1
409-
path: src/Schema/Result/EmptyResult.php
409+
path: src/Server/RequestHandler/ListPromptsHandler.php
410410

411411
-
412-
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\>\}\.$#'
413-
identifier: return.type
412+
message: '#^Call to an undefined method Mcp\\Capability\\Registry\\ResourceTemplateReference\:\:handle\(\)\.$#'
413+
identifier: method.notFound
414414
count: 1
415-
path: src/Schema/Result/ReadResourceResult.php
415+
path: src/Capability/Registry/ResourceTemplateReference.php
416416

417417
-
418418
message: '#^Result of && is always false\.$#'
419419
identifier: booleanAnd.alwaysFalse
420420
count: 1
421+
path: src/Server/RequestHandler/ListPromptsHandler.php
422+
423+
-
424+
message: '#^Strict comparison using \!\=\= between null and null will always evaluate to false\.$#'
425+
identifier: notIdentical.alwaysFalse
426+
count: 1
427+
path: src/Server/RequestHandler/ListPromptsHandler.php
428+
429+
-
430+
message: '#^Method Mcp\\Capability\\Registry\\ReferenceProviderInterface\:\:getResources\(\) invoked with 2 parameters, 0 required\.$#'
431+
identifier: arguments.count
432+
count: 1
421433
path: src/Server/RequestHandler/ListResourcesHandler.php
422434

435+
-
436+
message: '#^Method Mcp\\Capability\\Registry\\ReferenceProviderInterface\:\:getTools\(\) invoked with 2 parameters, 0 required\.$#'
437+
identifier: arguments.count
438+
count: 1
439+
path: src/Server/RequestHandler/ListToolsHandler.php
440+
423441
-
424442
message: '#^Strict comparison using \!\=\= between null and null will always evaluate to false\.$#'
425443
identifier: notIdentical.alwaysFalse

0 commit comments

Comments
 (0)