Skip to content

Commit 2d30f3c

Browse files
committed
Include new package in static analysis
1 parent 11664b9 commit 2d30f3c

File tree

3 files changed

+28
-25
lines changed

3 files changed

+28
-25
lines changed

packages/guides-cli/resources/config/services.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@
5454
->set(RunCommandHandler::class)
5555
->tag('phpdoc.guides.command', ['command' => RunCommand::class]);
5656

57-
if (class_exists(ServerFactory::class)) {
58-
$container->services()->defaults()->autowire()->set(ServerFactory::class)
59-
->set(Serve::class)
60-
->public()
61-
->tag('phpdoc.guides.cli.command');
57+
if (!class_exists(ServerFactory::class)) {
58+
return;
6259
}
60+
61+
$container->services()->defaults()->autowire()->set(ServerFactory::class)
62+
->set(Serve::class)
63+
->public()
64+
->tag('phpdoc.guides.cli.command');
6365
};

phpstan-baseline.neon

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
parameters:
22
ignoreErrors:
3+
-
4+
message: "#^Parameter \\#2 \\$headers of class GuzzleHttp\\\\Psr7\\\\Response constructor expects array\\<array\\<string\\>\\|string\\>, array\\<string, int\\|string\\> given\\.$#"
5+
count: 1
6+
path: packages/dev-server/src/Internal/HttpHandler.php
7+
8+
-
9+
message: "#^Method phpDocumentor\\\\DevServer\\\\Internal\\\\WebSocketHandler\\:\\:onMessage\\(\\) has parameter \\$msg with no value type specified in iterable type Ratchet\\\\RFC6455\\\\Messaging\\\\MessageInterface\\.$#"
10+
count: 1
11+
path: packages/dev-server/src/Internal/WebSocketHandler.php
12+
13+
-
14+
message: "#^Call to an undefined method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:addListener\\(\\)\\.$#"
15+
count: 1
16+
path: packages/dev-server/src/Server.php
17+
18+
-
19+
message: "#^Strict comparison using \\=\\=\\= between resource and false will always evaluate to false\\.$#"
20+
count: 1
21+
path: packages/dev-server/src/Watcher/INotifyWatcher.php
22+
323
-
424
message: "#^Call to function is_countable\\(\\) with array will always evaluate to true\\.$#"
525
count: 2
@@ -45,11 +65,6 @@ parameters:
4565
count: 1
4666
path: packages/guides-cli/src/DependencyInjection/ContainerFactory.php
4767

48-
-
49-
message: "#^Parameter \\#2 \\$headers of class GuzzleHttp\\\\Psr7\\\\Response constructor expects array\\<array\\<string\\>\\|string\\>, array\\<string, int\\|string\\> given\\.$#"
50-
count: 1
51-
path: packages/guides-cli/src/Internal/HttpHandler.php
52-
5368
-
5469
message: "#^Call to function method_exists\\(\\) with phpDocumentor\\\\Guides\\\\Settings\\\\ProjectSettings and 'getExcludes' will always evaluate to true\\.$#"
5570
count: 1
@@ -70,21 +85,6 @@ parameters:
7085
count: 1
7186
path: packages/guides-cli/src/Internal/RunCommandHandler.php
7287

73-
-
74-
message: "#^Call to an undefined method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:addListener\\(\\)\\.$#"
75-
count: 1
76-
path: packages/guides-cli/src/Internal/Server.php
77-
78-
-
79-
message: "#^Strict comparison using \\=\\=\\= between resource and false will always evaluate to false\\.$#"
80-
count: 1
81-
path: packages/guides-cli/src/Internal/Watcher/INotifyWatcher.php
82-
83-
-
84-
message: "#^Method phpDocumentor\\\\Guides\\\\Cli\\\\Internal\\\\WebSocketHandler\\:\\:onMessage\\(\\) has parameter \\$msg with no value type specified in iterable type Ratchet\\\\RFC6455\\\\Messaging\\\\MessageInterface\\.$#"
85-
count: 1
86-
path: packages/guides-cli/src/Internal/WebSocketHandler.php
87-
8888
-
8989
message: "#^Method phpDocumentor\\\\Guides\\\\Markdown\\\\Parsers\\\\InlineParsers\\\\AbstractInlineTextDecoratorParser\\<TValue of phpDocumentor\\\\Guides\\\\Nodes\\\\Inline\\\\InlineNodeInterface\\>\\:\\:createInlineNode\\(\\) invoked with 3 parameters, 2 required\\.$#"
9090
count: 2

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ parameters:
3535
- packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/VariableInlineRule.php
3636

3737
paths:
38+
- packages/dev-server/src
3839
- packages/filesystem/src
3940
- packages/guides/src
4041
- packages/guides-code/src

0 commit comments

Comments
 (0)