Skip to content

Commit bd76af4

Browse files
Bump phpstan/phpstan from 2.1.32 to 2.1.33 (#954)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
1 parent 6d42c76 commit bd76af4

File tree

23 files changed

+468
-103
lines changed

23 files changed

+468
-103
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.32",
6+
"phpstan/phpstan": "2.1.33",
77
"phpstan/phpstan-deprecation-rules": "2.0.3",
88
"phpstan/phpstan-phpunit": "2.0.9",
99
"phpstan/phpstan-strict-rules": "2.0.7",

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/autoload_classmap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@
973973
'PHPStan\\Rules\\PHPUnit\\AssertSameBooleanExpectedRule' => $vendorDir . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertSameBooleanExpectedRule.php',
974974
'PHPStan\\Rules\\PHPUnit\\AssertSameNullExpectedRule' => $vendorDir . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertSameNullExpectedRule.php',
975975
'PHPStan\\Rules\\PHPUnit\\AssertSameWithCountRule' => $vendorDir . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertSameWithCountRule.php',
976+
'PHPStan\\Rules\\PHPUnit\\AttributeRequiresPhpVersionRule' => $vendorDir . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AttributeRequiresPhpVersionRule.php',
976977
'PHPStan\\Rules\\PHPUnit\\ClassCoversExistsRule' => $vendorDir . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/ClassCoversExistsRule.php',
977978
'PHPStan\\Rules\\PHPUnit\\ClassMethodCoversExistsRule' => $vendorDir . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/ClassMethodCoversExistsRule.php',
978979
'PHPStan\\Rules\\PHPUnit\\CoversHelper' => $vendorDir . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/CoversHelper.php',
@@ -2012,6 +2013,7 @@
20122013
'Symplify\\PHPStanRules\\Rules\\PreventParentMethodVisibilityOverrideRule' => $vendorDir . '/symplify/phpstan-rules/src/Rules/PreventParentMethodVisibilityOverrideRule.php',
20132014
'Symplify\\PHPStanRules\\Rules\\Rector\\NoClassReflectionStaticReflectionRule' => $vendorDir . '/symplify/phpstan-rules/src/Rules/Rector/NoClassReflectionStaticReflectionRule.php',
20142015
'Symplify\\PHPStanRules\\Rules\\Rector\\NoInstanceOfStaticReflectionRule' => $vendorDir . '/symplify/phpstan-rules/src/Rules/Rector/NoInstanceOfStaticReflectionRule.php',
2016+
'Symplify\\PHPStanRules\\Rules\\Rector\\NoIntegerRefactorReturnRule' => $vendorDir . '/symplify/phpstan-rules/src/Rules/Rector/NoIntegerRefactorReturnRule.php',
20152017
'Symplify\\PHPStanRules\\Rules\\Rector\\NoLeadingBackslashInNameRule' => $vendorDir . '/symplify/phpstan-rules/src/Rules/Rector/NoLeadingBackslashInNameRule.php',
20162018
'Symplify\\PHPStanRules\\Rules\\Rector\\NoOnlyNullReturnInRefactorRule' => $vendorDir . '/symplify/phpstan-rules/src/Rules/Rector/NoOnlyNullReturnInRefactorRule.php',
20172019
'Symplify\\PHPStanRules\\Rules\\Rector\\NoPropertyNodeAssignRule' => $vendorDir . '/symplify/phpstan-rules/src/Rules/Rector/NoPropertyNodeAssignRule.php',

vendor/composer/autoload_static.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,7 @@ class ComposerStaticInit9cf8af24a7a084f114b4553be2a1ff9f
11331133
'PHPStan\\Rules\\PHPUnit\\AssertSameBooleanExpectedRule' => __DIR__ . '/..' . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertSameBooleanExpectedRule.php',
11341134
'PHPStan\\Rules\\PHPUnit\\AssertSameNullExpectedRule' => __DIR__ . '/..' . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertSameNullExpectedRule.php',
11351135
'PHPStan\\Rules\\PHPUnit\\AssertSameWithCountRule' => __DIR__ . '/..' . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertSameWithCountRule.php',
1136+
'PHPStan\\Rules\\PHPUnit\\AttributeRequiresPhpVersionRule' => __DIR__ . '/..' . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AttributeRequiresPhpVersionRule.php',
11361137
'PHPStan\\Rules\\PHPUnit\\ClassCoversExistsRule' => __DIR__ . '/..' . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/ClassCoversExistsRule.php',
11371138
'PHPStan\\Rules\\PHPUnit\\ClassMethodCoversExistsRule' => __DIR__ . '/..' . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/ClassMethodCoversExistsRule.php',
11381139
'PHPStan\\Rules\\PHPUnit\\CoversHelper' => __DIR__ . '/..' . '/phpstan/phpstan-phpunit/src/Rules/PHPUnit/CoversHelper.php',
@@ -2172,6 +2173,7 @@ class ComposerStaticInit9cf8af24a7a084f114b4553be2a1ff9f
21722173
'Symplify\\PHPStanRules\\Rules\\PreventParentMethodVisibilityOverrideRule' => __DIR__ . '/..' . '/symplify/phpstan-rules/src/Rules/PreventParentMethodVisibilityOverrideRule.php',
21732174
'Symplify\\PHPStanRules\\Rules\\Rector\\NoClassReflectionStaticReflectionRule' => __DIR__ . '/..' . '/symplify/phpstan-rules/src/Rules/Rector/NoClassReflectionStaticReflectionRule.php',
21742175
'Symplify\\PHPStanRules\\Rules\\Rector\\NoInstanceOfStaticReflectionRule' => __DIR__ . '/..' . '/symplify/phpstan-rules/src/Rules/Rector/NoInstanceOfStaticReflectionRule.php',
2176+
'Symplify\\PHPStanRules\\Rules\\Rector\\NoIntegerRefactorReturnRule' => __DIR__ . '/..' . '/symplify/phpstan-rules/src/Rules/Rector/NoIntegerRefactorReturnRule.php',
21752177
'Symplify\\PHPStanRules\\Rules\\Rector\\NoLeadingBackslashInNameRule' => __DIR__ . '/..' . '/symplify/phpstan-rules/src/Rules/Rector/NoLeadingBackslashInNameRule.php',
21762178
'Symplify\\PHPStanRules\\Rules\\Rector\\NoOnlyNullReturnInRefactorRule' => __DIR__ . '/..' . '/symplify/phpstan-rules/src/Rules/Rector/NoOnlyNullReturnInRefactorRule.php',
21772179
'Symplify\\PHPStanRules\\Rules\\Rector\\NoPropertyNodeAssignRule' => __DIR__ . '/..' . '/symplify/phpstan-rules/src/Rules/Rector/NoPropertyNodeAssignRule.php',

vendor/composer/installed.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -609,17 +609,17 @@
609609
},
610610
{
611611
"name": "nette/utils",
612-
"version": "v4.0.9",
613-
"version_normalized": "4.0.9.0",
612+
"version": "v4.0.10",
613+
"version_normalized": "4.0.10.0",
614614
"source": {
615615
"type": "git",
616616
"url": "https://github.com/nette/utils.git",
617-
"reference": "505a30ad386daa5211f08a318e47015b501cad30"
617+
"reference": "2778deb6aab136c8db4ed1f4d6e9f465ca2dbee3"
618618
},
619619
"dist": {
620620
"type": "zip",
621-
"url": "https://api.github.com/repos/nette/utils/zipball/505a30ad386daa5211f08a318e47015b501cad30",
622-
"reference": "505a30ad386daa5211f08a318e47015b501cad30",
621+
"url": "https://api.github.com/repos/nette/utils/zipball/2778deb6aab136c8db4ed1f4d6e9f465ca2dbee3",
622+
"reference": "2778deb6aab136c8db4ed1f4d6e9f465ca2dbee3",
623623
"shasum": ""
624624
},
625625
"require": {
@@ -643,7 +643,7 @@
643643
"ext-mbstring": "to use Strings::lower() etc...",
644644
"ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()"
645645
},
646-
"time": "2025-10-31T00:45:47+00:00",
646+
"time": "2025-12-01T17:30:42+00:00",
647647
"type": "library",
648648
"extra": {
649649
"branch-alias": {
@@ -695,7 +695,7 @@
695695
],
696696
"support": {
697697
"issues": "https://github.com/nette/utils/issues",
698-
"source": "https://github.com/nette/utils/tree/v4.0.9"
698+
"source": "https://github.com/nette/utils/tree/v4.0.10"
699699
},
700700
"install-path": "../nette/utils"
701701
},
@@ -829,12 +829,12 @@
829829
},
830830
{
831831
"name": "phpstan/phpstan",
832-
"version": "2.1.32",
833-
"version_normalized": "2.1.32.0",
832+
"version": "2.1.33",
833+
"version_normalized": "2.1.33.0",
834834
"dist": {
835835
"type": "zip",
836-
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/e126cad1e30a99b137b8ed75a85a676450ebb227",
837-
"reference": "e126cad1e30a99b137b8ed75a85a676450ebb227",
836+
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/9e800e6bee7d5bd02784d4c6069b48032d16224f",
837+
"reference": "9e800e6bee7d5bd02784d4c6069b48032d16224f",
838838
"shasum": ""
839839
},
840840
"require": {
@@ -843,7 +843,7 @@
843843
"conflict": {
844844
"phpstan/phpstan-shim": "*"
845845
},
846-
"time": "2025-11-11T15:18:17+00:00",
846+
"time": "2025-12-05T10:24:31+00:00",
847847
"bin": [
848848
"phpstan",
849849
"phpstan.phar"
@@ -935,17 +935,17 @@
935935
},
936936
{
937937
"name": "phpstan/phpstan-phpunit",
938-
"version": "2.0.8",
939-
"version_normalized": "2.0.8.0",
938+
"version": "2.0.9",
939+
"version_normalized": "2.0.9.0",
940940
"source": {
941941
"type": "git",
942942
"url": "https://github.com/phpstan/phpstan-phpunit.git",
943-
"reference": "2fe9fbeceaf76dd1ebaa7bbbb25e2fb5e59db2fe"
943+
"reference": "cda423c709dae0126987fec04a381ec819c9d9a7"
944944
},
945945
"dist": {
946946
"type": "zip",
947-
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/2fe9fbeceaf76dd1ebaa7bbbb25e2fb5e59db2fe",
948-
"reference": "2fe9fbeceaf76dd1ebaa7bbbb25e2fb5e59db2fe",
947+
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/cda423c709dae0126987fec04a381ec819c9d9a7",
948+
"reference": "cda423c709dae0126987fec04a381ec819c9d9a7",
949949
"shasum": ""
950950
},
951951
"require": {
@@ -962,7 +962,7 @@
962962
"phpstan/phpstan-strict-rules": "^2.0",
963963
"phpunit/phpunit": "^9.6"
964964
},
965-
"time": "2025-11-11T07:55:22+00:00",
965+
"time": "2025-12-05T08:04:44+00:00",
966966
"type": "phpstan-extension",
967967
"extra": {
968968
"phpstan": {
@@ -985,7 +985,7 @@
985985
"description": "PHPUnit extensions and rules for PHPStan",
986986
"support": {
987987
"issues": "https://github.com/phpstan/phpstan-phpunit/issues",
988-
"source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.8"
988+
"source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.9"
989989
},
990990
"install-path": "../phpstan/phpstan-phpunit"
991991
},
@@ -1625,17 +1625,17 @@
16251625
},
16261626
{
16271627
"name": "staabm/phpstan-todo-by",
1628-
"version": "0.3.2",
1629-
"version_normalized": "0.3.2.0",
1628+
"version": "0.3.3",
1629+
"version_normalized": "0.3.3.0",
16301630
"source": {
16311631
"type": "git",
16321632
"url": "https://github.com/staabm/phpstan-todo-by.git",
1633-
"reference": "90a1da0b88e56b17bbf1fa0d994bffd4b6484022"
1633+
"reference": "3c2b7f755965f5bb58354e7c492d3cb8de988f8e"
16341634
},
16351635
"dist": {
16361636
"type": "zip",
1637-
"url": "https://api.github.com/repos/staabm/phpstan-todo-by/zipball/90a1da0b88e56b17bbf1fa0d994bffd4b6484022",
1638-
"reference": "90a1da0b88e56b17bbf1fa0d994bffd4b6484022",
1637+
"url": "https://api.github.com/repos/staabm/phpstan-todo-by/zipball/3c2b7f755965f5bb58354e7c492d3cb8de988f8e",
1638+
"reference": "3c2b7f755965f5bb58354e7c492d3cb8de988f8e",
16391639
"shasum": ""
16401640
},
16411641
"require": {
@@ -1648,14 +1648,14 @@
16481648
"phpstan/phpstan": "^2.0"
16491649
},
16501650
"require-dev": {
1651-
"friendsofphp/php-cs-fixer": "^3.89",
1651+
"friendsofphp/php-cs-fixer": "^3.91",
16521652
"nikic/php-parser": "^5.6",
16531653
"phpstan/extension-installer": "^1.4",
16541654
"phpstan/phpstan-deprecation-rules": "^2",
16551655
"phpunit/phpunit": "^9 || ^10.5",
16561656
"redaxo/php-cs-fixer-config": "^1.0"
16571657
},
1658-
"time": "2025-11-22T11:13:59+00:00",
1658+
"time": "2025-12-04T06:51:25+00:00",
16591659
"type": "phpstan-extension",
16601660
"extra": {
16611661
"phpstan": {
@@ -1684,7 +1684,7 @@
16841684
],
16851685
"support": {
16861686
"issues": "https://github.com/staabm/phpstan-todo-by/issues",
1687-
"source": "https://github.com/staabm/phpstan-todo-by/tree/0.3.2"
1687+
"source": "https://github.com/staabm/phpstan-todo-by/tree/0.3.3"
16881688
},
16891689
"funding": [
16901690
{
@@ -1783,17 +1783,17 @@
17831783
},
17841784
{
17851785
"name": "symplify/phpstan-rules",
1786-
"version": "14.9.1",
1787-
"version_normalized": "14.9.1.0",
1786+
"version": "14.9.3",
1787+
"version_normalized": "14.9.3.0",
17881788
"source": {
17891789
"type": "git",
17901790
"url": "https://github.com/symplify/phpstan-rules.git",
1791-
"reference": "2e902398d950a02b334e1394935d313af59faa8c"
1791+
"reference": "3d9c46502852d89688242afef2621d005d9bccc2"
17921792
},
17931793
"dist": {
17941794
"type": "zip",
1795-
"url": "https://api.github.com/repos/symplify/phpstan-rules/zipball/2e902398d950a02b334e1394935d313af59faa8c",
1796-
"reference": "2e902398d950a02b334e1394935d313af59faa8c",
1795+
"url": "https://api.github.com/repos/symplify/phpstan-rules/zipball/3d9c46502852d89688242afef2621d005d9bccc2",
1796+
"reference": "3d9c46502852d89688242afef2621d005d9bccc2",
17971797
"shasum": ""
17981798
},
17991799
"require": {
@@ -1802,7 +1802,7 @@
18021802
"phpstan/phpstan": "^2.1.22",
18031803
"webmozart/assert": "^1.11"
18041804
},
1805-
"time": "2025-11-28T21:31:11+00:00",
1805+
"time": "2025-12-02T13:11:47+00:00",
18061806
"type": "phpstan-extension",
18071807
"extra": {
18081808
"phpstan": {
@@ -1827,7 +1827,7 @@
18271827
"description": "Set of Symplify rules for PHPStan",
18281828
"support": {
18291829
"issues": "https://github.com/symplify/phpstan-rules/issues",
1830-
"source": "https://github.com/symplify/phpstan-rules/tree/14.9.1"
1830+
"source": "https://github.com/symplify/phpstan-rules/tree/14.9.3"
18311831
},
18321832
"funding": [
18331833
{

vendor/composer/installed.php

Lines changed: 17 additions & 17 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' => '72782dbd3a07766ba3f293c966692bf6ddf089f4',
6+
'reference' => '51652f3727893869e1dbacdc89c6d8da2e82485d',
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' => '72782dbd3a07766ba3f293c966692bf6ddf089f4',
16+
'reference' => '51652f3727893869e1dbacdc89c6d8da2e82485d',
1717
'type' => 'library',
1818
'install_path' => __DIR__ . '/../../',
1919
'aliases' => array(),
@@ -104,9 +104,9 @@
104104
'dev_requirement' => false,
105105
),
106106
'nette/utils' => array(
107-
'pretty_version' => 'v4.0.9',
108-
'version' => '4.0.9.0',
109-
'reference' => '505a30ad386daa5211f08a318e47015b501cad30',
107+
'pretty_version' => 'v4.0.10',
108+
'version' => '4.0.10.0',
109+
'reference' => '2778deb6aab136c8db4ed1f4d6e9f465ca2dbee3',
110110
'type' => 'library',
111111
'install_path' => __DIR__ . '/../nette/utils',
112112
'aliases' => array(),
@@ -131,9 +131,9 @@
131131
'dev_requirement' => false,
132132
),
133133
'phpstan/phpstan' => array(
134-
'pretty_version' => '2.1.32',
135-
'version' => '2.1.32.0',
136-
'reference' => 'e126cad1e30a99b137b8ed75a85a676450ebb227',
134+
'pretty_version' => '2.1.33',
135+
'version' => '2.1.33.0',
136+
'reference' => '9e800e6bee7d5bd02784d4c6069b48032d16224f',
137137
'type' => 'library',
138138
'install_path' => __DIR__ . '/../phpstan/phpstan',
139139
'aliases' => array(),
@@ -149,9 +149,9 @@
149149
'dev_requirement' => false,
150150
),
151151
'phpstan/phpstan-phpunit' => array(
152-
'pretty_version' => '2.0.8',
153-
'version' => '2.0.8.0',
154-
'reference' => '2fe9fbeceaf76dd1ebaa7bbbb25e2fb5e59db2fe',
152+
'pretty_version' => '2.0.9',
153+
'version' => '2.0.9.0',
154+
'reference' => 'cda423c709dae0126987fec04a381ec819c9d9a7',
155155
'type' => 'phpstan-extension',
156156
'install_path' => __DIR__ . '/../phpstan/phpstan-phpunit',
157157
'aliases' => array(),
@@ -248,9 +248,9 @@
248248
'dev_requirement' => false,
249249
),
250250
'staabm/phpstan-todo-by' => array(
251-
'pretty_version' => '0.3.2',
252-
'version' => '0.3.2.0',
253-
'reference' => '90a1da0b88e56b17bbf1fa0d994bffd4b6484022',
251+
'pretty_version' => '0.3.3',
252+
'version' => '0.3.3.0',
253+
'reference' => '3c2b7f755965f5bb58354e7c492d3cb8de988f8e',
254254
'type' => 'phpstan-extension',
255255
'install_path' => __DIR__ . '/../staabm/phpstan-todo-by',
256256
'aliases' => array(),
@@ -266,9 +266,9 @@
266266
'dev_requirement' => false,
267267
),
268268
'symplify/phpstan-rules' => array(
269-
'pretty_version' => '14.9.1',
270-
'version' => '14.9.1.0',
271-
'reference' => '2e902398d950a02b334e1394935d313af59faa8c',
269+
'pretty_version' => '14.9.3',
270+
'version' => '14.9.3.0',
271+
'reference' => '3d9c46502852d89688242afef2621d005d9bccc2',
272272
'type' => 'phpstan-extension',
273273
'install_path' => __DIR__ . '/../symplify/phpstan-rules',
274274
'aliases' => array(),

vendor/nette/utils/src/Utils/Finder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ private function traverseDir(string $dir, array $searches, array $subdirs = []):
387387
$relativePathname = FileSystem::unixSlashes($file->getRelativePathname());
388388
foreach ($searches as $search) {
389389
if (
390-
$file->{'is' . $search->mode}()
390+
"is_$search->mode"(Helpers::IsWindows && $file->isLink() ? $file->getLinkTarget() : $file->getPathname())
391391
&& preg_match($search->pattern, $relativePathname)
392392
&& $this->proveFilters($this->filters, $file, $cache)
393393
) {

vendor/nette/utils/src/Utils/Helpers.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,16 @@ public static function compare(mixed $left, string $operator, mixed $right): boo
106106
default => throw new Nette\InvalidArgumentException("Unknown operator '$operator'"),
107107
};
108108
}
109+
110+
111+
/**
112+
* Splits a class name into namespace and short class name.
113+
* @return array{string, string}
114+
*/
115+
public static function splitClassName(string $name): array
116+
{
117+
return ($pos = strrpos($name, '\\')) === false
118+
? ['', $name]
119+
: [substr($name, 0, $pos), substr($name, $pos + 1)];
120+
}
109121
}

0 commit comments

Comments
 (0)