Skip to content

Commit 1512ff2

Browse files
authored
[CLEANUP] Move PHPStan configuration to Build/ (MyIntervals#1572)
1 parent d579dd5 commit 1512ff2

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,106 +4,106 @@ parameters:
44
message: '#^Parameter \#2 \$found of class Sabberworm\\CSS\\Parsing\\UnexpectedTokenException constructor expects string, Sabberworm\\CSS\\Value\\CSSFunction\|Sabberworm\\CSS\\Value\\CSSString\|Sabberworm\\CSS\\Value\\LineName\|Sabberworm\\CSS\\Value\\Size\|Sabberworm\\CSS\\Value\\URL given\.$#'
55
identifier: argument.type
66
count: 1
7-
path: ../src/CSSList/CSSList.php
7+
path: ../../src/CSSList/CSSList.php
88

99
-
1010
message: '#^Parameters should have "Sabberworm\\CSS\\CSSList\\CSSListItem\|array" types as the only types passed to this method$#'
1111
identifier: typePerfect.narrowPublicClassMethodParamType
1212
count: 1
13-
path: ../src/CSSList/CSSList.php
13+
path: ../../src/CSSList/CSSList.php
1414

1515
-
1616
message: '#^Negated boolean expression is always true\.$#'
1717
identifier: booleanNot.alwaysTrue
1818
count: 1
19-
path: ../src/Parsing/ParserState.php
19+
path: ../../src/Parsing/ParserState.php
2020

2121
-
2222
message: '#^Parameters should have "string\|int\|null" types as the only types passed to this method$#'
2323
identifier: typePerfect.narrowPublicClassMethodParamType
2424
count: 1
25-
path: ../src/Parsing/ParserState.php
25+
path: ../../src/Parsing/ParserState.php
2626

2727
-
2828
message: '#^Parameters should have "string" types as the only types passed to this method$#'
2929
identifier: typePerfect.narrowPublicClassMethodParamType
3030
count: 1
31-
path: ../src/RuleSet/DeclarationBlock.php
31+
path: ../../src/RuleSet/DeclarationBlock.php
3232

3333
-
3434
message: '#^Parameter \#2 \$arguments of class Sabberworm\\CSS\\Value\\CSSFunction constructor expects array\<Sabberworm\\CSS\\Value\\Value\|string\>\|Sabberworm\\CSS\\Value\\RuleValueList, Sabberworm\\CSS\\Value\\Value\|string given\.$#'
3535
identifier: argument.type
3636
count: 1
37-
path: ../src/Value/CSSFunction.php
37+
path: ../../src/Value/CSSFunction.php
3838

3939
-
4040
message: '#^Parameter \#2 \$offset of method Sabberworm\\CSS\\Parsing\\ParserState\:\:peek\(\) expects int\<0, max\>, \-1 given\.$#'
4141
identifier: argument.type
4242
count: 2
43-
path: ../src/Value/CalcFunction.php
43+
path: ../../src/Value/CalcFunction.php
4444

4545
-
4646
message: '#^Cannot call method getSize\(\) on Sabberworm\\CSS\\Value\\Value\|string\.$#'
4747
identifier: method.nonObject
4848
count: 3
49-
path: ../src/Value/Color.php
49+
path: ../../src/Value/Color.php
5050

5151
-
5252
message: '#^Parameters should have "float" types as the only types passed to this method$#'
5353
identifier: typePerfect.narrowPublicClassMethodParamType
5454
count: 1
55-
path: ../src/Value/Size.php
55+
path: ../../src/Value/Size.php
5656

5757
-
5858
message: '#^Strict comparison using \!\=\= between non\-empty\-string and null will always evaluate to true\.$#'
5959
identifier: notIdentical.alwaysTrue
6060
count: 1
61-
path: ../src/Value/Size.php
61+
path: ../../src/Value/Size.php
6262

6363
-
6464
message: '#^Parameter \#2 \$arguments of class Sabberworm\\CSS\\Value\\CSSFunction constructor expects array\<Sabberworm\\CSS\\Value\\Value\|string\>\|Sabberworm\\CSS\\Value\\RuleValueList, Sabberworm\\CSS\\Value\\Value\|string given\.$#'
6565
identifier: argument.type
6666
count: 1
67-
path: ../src/Value/Value.php
67+
path: ../../src/Value/Value.php
6868

6969
-
7070
message: '#^Parameter \#2 \$offset of method Sabberworm\\CSS\\Parsing\\ParserState\:\:peek\(\) expects int\<0, max\>, \-1 given\.$#'
7171
identifier: argument.type
7272
count: 1
73-
path: ../src/Value/Value.php
73+
path: ../../src/Value/Value.php
7474

7575
-
7676
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with ''red'' and Sabberworm\\CSS\\Value\\Value will always evaluate to false\.$#'
7777
identifier: staticMethod.impossibleType
7878
count: 1
79-
path: ../tests/ParserTest.php
79+
path: ../../tests/ParserTest.php
8080

8181
-
8282
message: '#^Parameter \#1 \$value of method Sabberworm\\CSS\\Property\\Declaration\:\:setValue\(\) expects Sabberworm\\CSS\\Value\\RuleValueList\|string\|null, Sabberworm\\CSS\\Value\\Size given\.$#'
8383
identifier: argument.type
8484
count: 3
85-
path: ../tests/RuleSet/DeclarationBlockTest.php
85+
path: ../../tests/RuleSet/DeclarationBlockTest.php
8686

8787
-
8888
message: '#^Parameter \#1 \$type of class Sabberworm\\CSS\\CSSList\\AtRuleBlockList constructor expects non\-empty\-string, '''' given\.$#'
8989
identifier: argument.type
9090
count: 3
91-
path: ../tests/Unit/CSSList/AtRuleBlockListTest.php
91+
path: ../../tests/Unit/CSSList/AtRuleBlockListTest.php
9292

9393
-
9494
message: '#^Parameter \#1 \$value of method Sabberworm\\CSS\\Property\\Declaration\:\:setValue\(\) expects Sabberworm\\CSS\\Value\\RuleValueList\|string\|null, Sabberworm\\CSS\\Value\\CSSFunction given\.$#'
9595
identifier: argument.type
9696
count: 2
97-
path: ../tests/Unit/CSSList/CSSBlockListTest.php
97+
path: ../../tests/Unit/CSSList/CSSBlockListTest.php
9898

9999
-
100100
message: '#^Parameter \#1 \$value of method Sabberworm\\CSS\\Property\\Declaration\:\:setValue\(\) expects Sabberworm\\CSS\\Value\\RuleValueList\|string\|null, Sabberworm\\CSS\\Value\\CSSString given\.$#'
101101
identifier: argument.type
102102
count: 10
103-
path: ../tests/Unit/CSSList/CSSBlockListTest.php
103+
path: ../../tests/Unit/CSSList/CSSBlockListTest.php
104104

105105
-
106106
message: '#^Parameter \#1 \$selectors of method Sabberworm\\CSS\\CSSList\\CSSList\:\:removeDeclarationBlockBySelector\(\) expects array\<Sabberworm\\CSS\\Property\\Selector\>\|Sabberworm\\CSS\\RuleSet\\DeclarationBlock\|string, array\<int, string\> given\.$#'
107107
identifier: argument.type
108108
count: 2
109-
path: ../tests/Unit/CSSList/CSSListTest.php
109+
path: ../../tests/Unit/CSSList/CSSListTest.php
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ parameters:
2121
ignoreErrors:
2222
-
2323
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) .* will always evaluate to#'
24-
path: '../tests/'
24+
path: '%currentWorkingDirectory%/tests/'

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"check:php:fixer": "\"./.phive/php-cs-fixer\" --config=./Build/php-cs-fixer/config.php fix --dry-run -v --show-progress=dots --diff Build bin config src tests",
8585
"check:php:lint": "parallel-lint bin config src tests",
8686
"check:php:rector": "rector process --no-progress-bar --dry-run --config=config/rector.php",
87-
"check:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon",
87+
"check:php:stan": "phpstan --no-progress --configuration=./Build/phpstan/phpstan.neon",
8888
"check:static": [
8989
"@check:composer:normalize",
9090
"@check:php:fixer",
@@ -112,8 +112,8 @@
112112
"fix:php:codesniffer": "phpcbf --standard=config/phpcs.xml bin config src tests",
113113
"fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=./Build/php-cs-fixer/config.php fix Build bin config src tests",
114114
"fix:php:rector": "rector process --config=config/rector.php",
115-
"phpstan:baseline": "phpstan --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon --allow-empty-baseline",
116-
"phpstan:clearcache": "phpstan clear-result-cache"
115+
"phpstan:baseline": "phpstan --configuration=./Build/phpstan/phpstan.neon --generate-baseline=./Build/phpstan/phpstan-baseline.neon --allow-empty-baseline",
116+
"phpstan:clearcache": "phpstan clear-result-cache --configuration=./Build/phpstan/phpstan.neon"
117117
},
118118
"scripts-descriptions": {
119119
"check": "Runs all dynamic and static code checks.",

0 commit comments

Comments
 (0)