Skip to content

Commit 8980c87

Browse files
authored
Merge pull request #2845 from teohhanhui/fix/phpstan-temporary-ignore-errors
Add temporary false positives for phpstan
2 parents d33b6d2 + 39eff92 commit 8980c87

File tree

2 files changed

+8
-52
lines changed

2 files changed

+8
-52
lines changed

.circleci/config.yml

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
# codecov: codecov/codecov@1
5-
# https://github.com/codecov/codecov-circleci-orb/pull/17
6-
codecov:
7-
commands:
8-
upload:
9-
parameters:
10-
conf:
11-
description: Used to specify the location of the .codecov.yml config file
12-
type: string
13-
default: ".codecov.yml"
14-
file:
15-
description: Path to the code coverage data file to upload.
16-
type: string
17-
default: ""
18-
flags:
19-
description: Flag the upload to group coverage metrics (e.g. unittests | integration | ui,chrome)
20-
type: string
21-
default: ""
22-
token:
23-
description: Set the private repository token (defaults to environment variable $CODECOV_TOKEN)
24-
type: string
25-
default: ${CODECOV_TOKEN}
26-
upload_name:
27-
description: Custom defined name of the upload. Visible in Codecov UI
28-
type: string
29-
default: ${CIRCLE_BUILD_NUM}
30-
steps:
31-
- when:
32-
condition: << parameters.file >>
33-
steps:
34-
- run:
35-
name: Upload Coverage Results
36-
command: |
37-
curl -s https://codecov.io/bash | bash -s -- \
38-
-f "<< parameters.file >>" \
39-
-t "<< parameters.token >>" \
40-
-n "<< parameters.upload_name >>" \
41-
-y "<< parameters.conf >>" \
42-
-F "<< parameters.flags >>" \
43-
-Z || echo 'Codecov upload failed'
44-
- unless:
45-
condition: << parameters.file >>
46-
steps:
47-
- run:
48-
name: Upload Coverage Results
49-
command: |
50-
curl -s https://codecov.io/bash | bash -s -- \
51-
-t "<< parameters.token >>" \
52-
-n "<< parameters.upload_name >>" \
53-
-y "<< parameters.conf >>" \
54-
-F "<< parameters.flags >>" \
55-
-Z || echo 'Codecov upload failed'
4+
codecov: codecov/codecov@1
565
coveralls:
576
commands:
587
upload:

phpstan.neon.dist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ parameters:
3535
path: %currentWorkingDirectory%/src/GraphQl/Resolver/FieldsToAttributesTrait.php
3636
- '#Access to an undefined property Prophecy\\Prophecy\\ObjectProphecy<(\\?[a-zA-Z0-9_]+)+>::\$[a-zA-Z0-9_]+#'
3737
- '#Call to an undefined method Doctrine\\Common\\Persistence\\ObjectManager::getConnection\(\)#'
38+
# https://github.com/symfony/symfony/pull/31903
39+
-
40+
message: '#Access to an undefined property object::\$headers\.#'
41+
path: %currentWorkingDirectory%/tests/Bridge/Symfony/Bundle/Twig/ApiPlatformProfilerPanelTest.php
42+
-
43+
message: '#Call to an undefined method object::getStatusCode\(\)\.#'
44+
path: %currentWorkingDirectory%/tests/Bridge/Symfony/Bundle/Twig/ApiPlatformProfilerPanelTest.php
3845
- '#Parameter \#1 \$function of function call_user_func expects callable\(\): mixed, .+ given\.#'
3946
- '#Parameter \#1 \$exception of static method Symfony\\Component\\Debug\\Exception\\FlattenException::create\(\) expects Exception, Symfony\\Component\\Serializer\\Exception\\ExceptionInterface given\.#'
4047
- '#Parameter \#1 \$classes of class ApiPlatform\\Core\\Metadata\\Resource\\ResourceNameCollection constructor expects array<string>, array<int, int\|string> given\.#'

0 commit comments

Comments
 (0)