Skip to content

Commit f5245ae

Browse files
committed
phpstan fixes
1 parent 44efb0f commit f5245ae

3 files changed

Lines changed: 55 additions & 64 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"nette/tester": "^2.5",
1818
"tracy/tracy": "^2.9",
1919
"latte/latte": "^3.0.14",
20-
"phpstan/phpstan": "^2.1@stable",
20+
"phpstan/phpstan": "^2.2@stable",
2121
"phpstan/extension-installer": "^1.4@stable",
2222
"nette/phpstan-rules": "^1.0"
2323
},

phpstan-baseline.neon

Lines changed: 0 additions & 61 deletions
This file was deleted.

phpstan.neon

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,57 @@ parameters:
77
excludePaths:
88
- src/Texy.php # compatibility file with if (false) block
99

10-
includes:
11-
- phpstan-baseline.neon
10+
ignoreErrors:
11+
-
12+
message: '#^Method Texy\\Bridges\\Latte\\TexyExtension\:\:getFilters\(\) return type has no signature specified for callable\.$#'
13+
identifier: missingType.callable
14+
count: 1
15+
path: src/Bridges/Latte/TexyExtension.php
16+
17+
-
18+
message: '#^Unsafe usage of new static\(\)\.$#'
19+
identifier: new.static
20+
count: 1
21+
path: src/Bridges/Latte/TexyNode.php
22+
23+
-
24+
message: '#^Parameter \#1 \$URL of class Texy\\Link constructor expects string, string\|null given\.$#'
25+
identifier: argument.type
26+
count: 1
27+
path: src/Texy/Modules/FigureModule.php
28+
29+
-
30+
message: '#^Empty array passed to foreach\.$#'
31+
identifier: foreach.emptyArray
32+
count: 1
33+
path: src/Texy/Modules/HtmlOutputModule.php
34+
35+
-
36+
message: '#^Parameter \#1 \$URL of class Texy\\Link constructor expects string, string\|null given\.$#'
37+
identifier: argument.type
38+
count: 1
39+
path: src/Texy/Modules/ImageModule.php
40+
41+
-
42+
message: '#^Parameter \#1 \$URL of class Texy\\Link constructor expects string, string\|null given\.$#'
43+
identifier: argument.type
44+
count: 1
45+
path: src/Texy/Modules/LinkModule.php
46+
47+
-
48+
message: '#^Parameter \#3 \$subject of function str_replace expects array\<string\>\|string, string\|null given\.$#'
49+
identifier: argument.type
50+
count: 1
51+
path: src/Texy/Modules/LinkModule.php
52+
53+
-
54+
message: '#^Method Texy\\Regexp\:\:replace\(\) should return string but returns string\|null\.$#'
55+
identifier: return.type
56+
count: 1
57+
path: src/Texy/Regexp.php
58+
59+
-
60+
message: '#^Method Texy\\Texy\:\:addHandler\(\) has parameter \$callback with no signature specified for callable\.$#'
61+
identifier: missingType.callable
62+
count: 1
63+
path: src/Texy/Texy.php

0 commit comments

Comments
 (0)