Skip to content

Commit ba0eb54

Browse files
committedFeb 17, 2022
adjust static analysis configuration to BC breaks
1 parent 856136f commit ba0eb54

File tree

5 files changed

+23
-24
lines changed

5 files changed

+23
-24
lines changed
 

‎.github/workflows/static.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
phpstan:
1111
name: PHPStan
1212
runs-on: ubuntu-latest
13-
13+
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v2
@@ -31,4 +31,4 @@ jobs:
3131
- name: PHP-CS-Fixer
3232
uses: docker://oskarstark/php-cs-fixer-ga
3333
with:
34-
args: --dry-run --diff-format udiff
34+
args: --dry-run

‎.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.php_cs
2-
.php_cs.cache
1+
.php-cs-fixer.php
2+
.php-cs-fixer.cache
33
/build/
44
/composer.lock
55
/phpspec.yml

‎.php-cs-fixer.dist.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in(__DIR__.'/src')
5+
->name('*.php')
6+
;
7+
8+
$config = (new PhpCsFixer\Config())
9+
->setRiskyAllowed(true)
10+
->setRules([
11+
'@Symfony' => true,
12+
])
13+
->setFinder($finder)
14+
;
15+
16+
return $config;

‎.php_cs.dist

-16
This file was deleted.

‎phpstan-baseline.neon

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Method Http\\\\Client\\\\Exception\\\\HttpException\\:\\:create\\(\\) has no return typehint specified\\.$#"
4+
message: "#^Method Http\\\\Client\\\\Exception\\\\HttpException\\:\\:create\\(\\) has no return type specified\\.$#"
55
count: 1
66
path: src/Exception/HttpException.php
77

@@ -11,12 +11,11 @@ parameters:
1111
path: src/Exception/HttpException.php
1212

1313
-
14-
message: "#^Method Http\\\\Client\\\\Exception\\\\NetworkException\\:\\:setRequest\\(\\) has no return typehint specified\\.$#"
14+
message: "#^Method Http\\\\Client\\\\Exception\\\\NetworkException\\:\\:setRequest\\(\\) has no return type specified\\.$#"
1515
count: 1
1616
path: src/Exception/NetworkException.php
1717

1818
-
19-
message: "#^Method Http\\\\Client\\\\Exception\\\\RequestException\\:\\:setRequest\\(\\) has no return typehint specified\\.$#"
19+
message: "#^Method Http\\\\Client\\\\Exception\\\\RequestException\\:\\:setRequest\\(\\) has no return type specified\\.$#"
2020
count: 1
2121
path: src/Exception/RequestException.php
22-

0 commit comments

Comments
 (0)
Please sign in to comment.