Skip to content

Commit 828b4ba

Browse files
committed
phpstan needs dev dependencies to see classes
1 parent 2c7256e commit 828b4ba

File tree

2 files changed

+3
-55
lines changed

2 files changed

+3
-55
lines changed

.github/workflows/static.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v2
1717

18+
- name: Download dependencies
19+
run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress --no-suggest --prefer-lowest
20+
1821
- name: PHPStan
1922
uses: docker://oskarstark/phpstan-ga
2023
with:

phpstan-baseline.neon

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,6 @@ parameters:
130130
count: 1
131131
path: src/CookieJar.php
132132

133-
-
134-
message: "#^Method Http\\\\Message\\\\CookieJar\\:\\:count\\(\\) has no return typehint specified\\.$#"
135-
count: 1
136-
path: src/CookieJar.php
137-
138133
-
139134
message: "#^Method Http\\\\Message\\\\CookieJar\\:\\:getIterator\\(\\) return type has no value type specified in iterable type Traversable\\<mixed, mixed\\>\\.$#"
140135
count: 1
@@ -145,26 +140,6 @@ parameters:
145140
count: 1
146141
path: src/CookieUtil.php
147142

148-
-
149-
message: "#^Method Http\\\\Message\\\\Encoding\\\\FilteredStream\\:\\:getSize\\(\\) has no return typehint specified\\.$#"
150-
count: 2
151-
path: src/Encoding/FilteredStream.php
152-
153-
-
154-
message: "#^Method Http\\\\Message\\\\Encoding\\\\FilteredStream\\:\\:isSeekable\\(\\) has no return typehint specified\\.$#"
155-
count: 2
156-
path: src/Encoding/FilteredStream.php
157-
158-
-
159-
message: "#^Method Http\\\\Message\\\\Encoding\\\\FilteredStream\\:\\:seek\\(\\) has no return typehint specified\\.$#"
160-
count: 2
161-
path: src/Encoding/FilteredStream.php
162-
163-
-
164-
message: "#^Method Http\\\\Message\\\\Encoding\\\\FilteredStream\\:\\:rewind\\(\\) has no return typehint specified\\.$#"
165-
count: 2
166-
path: src/Encoding/FilteredStream.php
167-
168143
-
169144
message: "#^Method Http\\\\Message\\\\Encoding\\\\FilteredStream\\:\\:fill\\(\\) has no return typehint specified\\.$#"
170145
count: 1
@@ -175,31 +150,6 @@ parameters:
175150
count: 1
176151
path: src/Encoding/ChunkStream.php
177152

178-
-
179-
message: "#^Method Http\\\\Message\\\\Encoding\\\\Filter\\\\Chunk\\:\\:filter\\(\\) has no return typehint specified\\.$#"
180-
count: 1
181-
path: src/Encoding/Filter/Chunk.php
182-
183-
-
184-
message: "#^Method Http\\\\Message\\\\Encoding\\\\Filter\\\\Chunk\\:\\:filter\\(\\) has parameter \\$closing with no typehint specified\\.$#"
185-
count: 1
186-
path: src/Encoding/Filter/Chunk.php
187-
188-
-
189-
message: "#^Method Http\\\\Message\\\\Encoding\\\\Filter\\\\Chunk\\:\\:filter\\(\\) has parameter \\$consumed with no typehint specified\\.$#"
190-
count: 1
191-
path: src/Encoding/Filter/Chunk.php
192-
193-
-
194-
message: "#^Method Http\\\\Message\\\\Encoding\\\\Filter\\\\Chunk\\:\\:filter\\(\\) has parameter \\$in with no typehint specified\\.$#"
195-
count: 1
196-
path: src/Encoding/Filter/Chunk.php
197-
198-
-
199-
message: "#^Method Http\\\\Message\\\\Encoding\\\\Filter\\\\Chunk\\:\\:filter\\(\\) has parameter \\$out with no typehint specified\\.$#"
200-
count: 1
201-
path: src/Encoding/Filter/Chunk.php
202-
203153
-
204154
message: "#^Access to an undefined property Http\\\\Message\\\\Encoding\\\\Filter\\\\Chunk\\:\\:\\$stream\\.$#"
205155
count: 2
@@ -325,11 +275,6 @@ parameters:
325275
count: 1
326276
path: src/Stream/BufferedStream.php
327277

328-
-
329-
message: "#^Parameter \\#1 \\$stream of class Slim\\\\Http\\\\Stream constructor expects resource, resource\\|false given\\.$#"
330-
count: 1
331-
path: src/StreamFactory/SlimStreamFactory.php
332-
333278
-
334279
message: "#^Unreachable statement \\- code above always terminates\\.$#"
335280
count: 1

0 commit comments

Comments
 (0)