Skip to content

Commit 7ffee35

Browse files
Bump phpstan/phpstan from 2.1.37 to 2.1.38 (#976)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 821b75e commit 7ffee35

File tree

10 files changed

+52
-46
lines changed

10 files changed

+52
-46
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"php": ">=8.1",
44
"justinrainbow/json-schema": "^5.3",
55
"php-parallel-lint/php-parallel-lint": "1.4",
6-
"phpstan/phpstan": "2.1.37",
6+
"phpstan/phpstan": "2.1.38",
77
"phpstan/phpstan-deprecation-rules": "2.0.3",
88
"phpstan/phpstan-phpunit": "2.0.12",
99
"phpstan/phpstan-strict-rules": "2.0.8",

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/composer/installed.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -829,12 +829,12 @@
829829
},
830830
{
831831
"name": "phpstan/phpstan",
832-
"version": "2.1.37",
833-
"version_normalized": "2.1.37.0",
832+
"version": "2.1.38",
833+
"version_normalized": "2.1.38.0",
834834
"dist": {
835835
"type": "zip",
836-
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/28cd424c5ea984128c95cfa7ea658808e8954e49",
837-
"reference": "28cd424c5ea984128c95cfa7ea658808e8954e49",
836+
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/dfaf1f530e1663aa167bc3e52197adb221582629",
837+
"reference": "dfaf1f530e1663aa167bc3e52197adb221582629",
838838
"shasum": ""
839839
},
840840
"require": {
@@ -843,7 +843,7 @@
843843
"conflict": {
844844
"phpstan/phpstan-shim": "*"
845845
},
846-
"time": "2026-01-24T08:21:55+00:00",
846+
"time": "2026-01-30T17:12:46+00:00",
847847
"bin": [
848848
"phpstan",
849849
"phpstan.phar"
@@ -1277,17 +1277,17 @@
12771277
},
12781278
{
12791279
"name": "spaze/phpstan-disallowed-calls",
1280-
"version": "v4.7.0",
1281-
"version_normalized": "4.7.0.0",
1280+
"version": "v4.7.1",
1281+
"version_normalized": "4.7.1.0",
12821282
"source": {
12831283
"type": "git",
12841284
"url": "https://github.com/spaze/phpstan-disallowed-calls.git",
1285-
"reference": "0765102eeb154da8a3bcef3200375bb4297a2141"
1285+
"reference": "4be6274bc23a2c44817690feda3ae4189496c246"
12861286
},
12871287
"dist": {
12881288
"type": "zip",
1289-
"url": "https://api.github.com/repos/spaze/phpstan-disallowed-calls/zipball/0765102eeb154da8a3bcef3200375bb4297a2141",
1290-
"reference": "0765102eeb154da8a3bcef3200375bb4297a2141",
1289+
"url": "https://api.github.com/repos/spaze/phpstan-disallowed-calls/zipball/4be6274bc23a2c44817690feda3ae4189496c246",
1290+
"reference": "4be6274bc23a2c44817690feda3ae4189496c246",
12911291
"shasum": ""
12921292
},
12931293
"require": {
@@ -1300,10 +1300,10 @@
13001300
"php-parallel-lint/php-parallel-lint": "^1.2",
13011301
"phpstan/phpstan-deprecation-rules": "^1.2 || ^2.0",
13021302
"phpunit/phpunit": "^8.5.14 || ^10.1 || ^11.0 || ^12.0",
1303-
"shipmonk/dead-code-detector": "^0.13.2",
1303+
"shipmonk/dead-code-detector": "^0.14.1",
13041304
"spaze/coding-standard": "^1.8"
13051305
},
1306-
"time": "2025-11-01T23:01:09+00:00",
1306+
"time": "2026-01-31T03:50:05+00:00",
13071307
"type": "phpstan-extension",
13081308
"extra": {
13091309
"phpstan": {
@@ -1335,7 +1335,7 @@
13351335
],
13361336
"support": {
13371337
"issues": "https://github.com/spaze/phpstan-disallowed-calls/issues",
1338-
"source": "https://github.com/spaze/phpstan-disallowed-calls/tree/v4.7.0"
1338+
"source": "https://github.com/spaze/phpstan-disallowed-calls/tree/v4.7.1"
13391339
},
13401340
"funding": [
13411341
{

vendor/composer/installed.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => '__root__',
44
'pretty_version' => 'dev-main',
55
'version' => 'dev-main',
6-
'reference' => '38641ac43ad1e7d9cef581922a5c380da06e303c',
6+
'reference' => '200aee786d1dab97e7d291ae0a4d82ba31dbda01',
77
'type' => 'library',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -13,7 +13,7 @@
1313
'__root__' => array(
1414
'pretty_version' => 'dev-main',
1515
'version' => 'dev-main',
16-
'reference' => '38641ac43ad1e7d9cef581922a5c380da06e303c',
16+
'reference' => '200aee786d1dab97e7d291ae0a4d82ba31dbda01',
1717
'type' => 'library',
1818
'install_path' => __DIR__ . '/../../',
1919
'aliases' => array(),
@@ -131,9 +131,9 @@
131131
'dev_requirement' => false,
132132
),
133133
'phpstan/phpstan' => array(
134-
'pretty_version' => '2.1.37',
135-
'version' => '2.1.37.0',
136-
'reference' => '28cd424c5ea984128c95cfa7ea658808e8954e49',
134+
'pretty_version' => '2.1.38',
135+
'version' => '2.1.38.0',
136+
'reference' => 'dfaf1f530e1663aa167bc3e52197adb221582629',
137137
'type' => 'library',
138138
'install_path' => __DIR__ . '/../phpstan/phpstan',
139139
'aliases' => array(),
@@ -203,9 +203,9 @@
203203
'dev_requirement' => false,
204204
),
205205
'spaze/phpstan-disallowed-calls' => array(
206-
'pretty_version' => 'v4.7.0',
207-
'version' => '4.7.0.0',
208-
'reference' => '0765102eeb154da8a3bcef3200375bb4297a2141',
206+
'pretty_version' => 'v4.7.1',
207+
'version' => '4.7.1.0',
208+
'reference' => '4be6274bc23a2c44817690feda3ae4189496c246',
209209
'type' => 'phpstan-extension',
210210
'install_path' => __DIR__ . '/../spaze/phpstan-disallowed-calls',
211211
'aliases' => array(),
-7.1 KB
Binary file not shown.
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
-----BEGIN PGP SIGNATURE-----
22

3-
iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAml0gPsACgkQUcZzBf/C
4-
5cD/5A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bVpy3BXK0/4Jxu+mi5Ftuh/iXRWc7/T+Yli/OsGiRJVFcvrXlkNCRhJzXIA
9+
IhF7i4s7H+smJ5vYPjevmiUII6UWaw43RpAWGHCN1pDrBsQca2G+BRSED7vSoIEX
10+
LuYvGxM4JNS/y3AY2FYb7uv9gBeDPf1+CVNK9c7Oi3SLxnF7jM+ORHCV3zYv8dQ6
11+
QE71e/ekDgXg00uQUp1qeHQLvkYxlVV84W6v1E1O083iJJtVpEYwkeMjI2UZxzsG
12+
D5wv1Bj+BsdKnRThGQ8iBzkM3UxD5zvTn6w4LI3drDhV+joX646DAj6dpDfCPSTf
13+
uhqikkeq0aJ6XglIwCsduJnBj7bksccE4/dHC/D9a8J8QH5Yx0YUDqrNTM4aXG09
14+
rHTn+p7q4YGrfyiqzyr94DHOTkiJz+Nuq3MvbaZE9Krtg573noc=
15+
=VsMH
1616
-----END PGP SIGNATURE-----

vendor/spaze/phpstan-disallowed-calls/bin/generate-from-disabled.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@
3838

3939
$config = [];
4040
foreach ($disallowedCalls as [$section, $disabled, $key]) {
41+
if ($disabled === false) {
42+
continue;
43+
}
4144
$calls = preg_split('/,/', $disabled, -1, PREG_SPLIT_NO_EMPTY);
45+
if ($calls === false) {
46+
continue;
47+
}
4248
foreach ($calls as $call) {
4349
$config[$section][] = [$key => $call];
4450
}

vendor/spaze/phpstan-disallowed-calls/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"php-parallel-lint/php-parallel-lint": "^1.2",
3131
"php-parallel-lint/php-console-highlighter": "^1.0",
3232
"phpstan/phpstan-deprecation-rules": "^1.2 || ^2.0",
33-
"shipmonk/dead-code-detector": "^0.13.2",
33+
"shipmonk/dead-code-detector": "^0.14.1",
3434
"spaze/coding-standard": "^1.8"
3535
},
3636
"autoload": {
@@ -46,8 +46,8 @@
4646
"lint-8.1": "vendor/bin/parallel-lint --colors src/ tests/ --exclude tests/src/AttributesEverywhere.php --exclude tests/src/disallowed/constantDynamicUsages.php --exclude tests/src/disallowed-allow/constantDynamicUsages.php --exclude tests/src/disallowed/firstClassCallable.php --exclude tests/src/disallowed-allow/firstClassCallable.php",
4747
"lint-8.2": "vendor/bin/parallel-lint --colors src/ tests/ --exclude tests/src/disallowed/constantDynamicUsages.php --exclude tests/src/disallowed-allow/constantDynamicUsages.php",
4848
"lint-neon": "vendor/bin/neon-lint .",
49-
"phpcs": "vendor/bin/phpcs src/ tests/",
50-
"cs-fix": "vendor/bin/phpcbf src/ tests/",
49+
"phpcs": "vendor/bin/phpcs src/ tests/ bin/",
50+
"cs-fix": "vendor/bin/phpcbf src/ tests/ bin/",
5151
"phpstan": "vendor/bin/phpstan --ansi analyse --configuration phpstan.neon",
5252
"phpunit": "php -d zend.assertions=1 vendor/bin/phpunit --colors=always",
5353
"test": [

vendor/spaze/phpstan-disallowed-calls/disallowed-loose-calls.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ parameters:
99
function: 'htmlspecialchars()'
1010
message: 'set the $flags parameter to `ENT_QUOTES` to also convert single quotes to entities to prevent some HTML injection bugs'
1111
allowParamFlagsAnywhere:
12-
2: 3 # ENT_QUOTES
12+
2: 3 # ENT_QUOTES; using ::constant(ENT_QUOTES) is discouraged as it may break when PHPStan updates nette/di

vendor/spaze/phpstan-disallowed-calls/src/Usages/ClassConstantUsages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function (ConstantStringType $constantString): string {
121121
if (!$usedOnType->hasConstant($constant)->yes()) {
122122
return [];
123123
}
124-
$classNames = [$usedOnType->getConstant($constant)->getDeclaringClass()->getDisplayName()];
124+
$classNames = [$usedOnType->getConstant($constant)->getDeclaringClass()->getDisplayName(false)];
125125
}
126126
return $this->disallowedConstantRuleErrors->get($this->getFullyQualified($classNames, $constant), $node, $scope, $displayName, $this->disallowedConstants, ErrorIdentifiers::DISALLOWED_CLASS_CONSTANT);
127127
}

0 commit comments

Comments
 (0)