Skip to content

Commit 767dc0b

Browse files
chore(deps): update dependency phpstan/phpstan to v2.1.18 (#1733)
* chore(deps): update dependency phpstan/phpstan to v2.1.18 * rm useless assert * tmp output error codes * php74 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Simon Podlipsky <simon@podlipsky.net>
1 parent e41a91b commit 767dc0b

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
uses: ramsey/composer-install@v2
3838

3939
- name: Run a static analysis with phpstan/phpstan
40-
run: vendor/bin/phpstan --error-format=checkstyle | cs2pr
40+
run: vendor/bin/phpstan

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"nyholm/psr7": "^1.5",
2424
"phpbench/phpbench": "^1.2",
2525
"phpstan/extension-installer": "^1.1",
26-
"phpstan/phpstan": "2.1.17",
26+
"phpstan/phpstan": "2.1.18",
2727
"phpstan/phpstan-phpunit": "2.0.6",
2828
"phpstan/phpstan-strict-rules": "2.0.4",
2929
"phpunit/phpunit": "^9.5 || ^10.5.21 || ^11",

phpstan/php-below-8.0.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ parameters:
44
- ../src/Type/Definition/Deprecated.php
55
- ../src/Type/Definition/Description.php
66
ignoreErrors:
7+
- path: ../src/Utils/Utils.php
8+
identifier: return.type
9+
message: "#::chr#"
10+
count: 1
11+
712
# Native enums require PHP 8.1, but checking if a value is of an unknown class still works
813
- path: ../src/Type/Definition/EnumType.php
914
identifier: class.notFound

src/Utils/Utils.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ public static function chr(int $ord, string $encoding = 'UTF-8'): string
117117
}
118118

119119
$converted = mb_convert_encoding(self::chr($ord, 'UCS-4BE'), $encoding, 'UCS-4BE');
120-
assert(is_string($converted), 'format string is statically known to be correct');
121120

122121
return $converted;
123122
}

0 commit comments

Comments
 (0)