Skip to content

Commit 4362f8a

Browse files
authored
Update packages (#475)
- phpstan/phpstan updated from 2.1.1 to 2.1.2 patch See changes: phpstan/phpstan@2.1.1...2.1.2 Release notes: https://github.com/phpstan/phpstan/releases/tag/2.1.2 - roave/security-advisories updated from dev-latest@e7a38fc to dev-latest@fb6b004 See changes: Roave/SecurityAdvisories@e7a38fc...fb6b004 - spaze/phpstan-disallowed-calls updated from v4.1.1 to v4.2.0 minor See changes: spaze/phpstan-disallowed-calls@v4.1.1...v4.2.0 Release notes: https://github.com/spaze/phpstan-disallowed-calls/releases/tag/v4.2.0
2 parents 07f9043 + df5bd37 commit 4362f8a

File tree

14 files changed

+217
-81
lines changed

14 files changed

+217
-81
lines changed

app/composer.lock

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

app/src/Test/TestCaseRunner.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TestCaseRunner
1919

2020

2121
/**
22-
* @param class-string<TestCase> $test
22+
* @param class-string $test
2323
* @return void
2424
*/
2525
public static function run(string $test): void
@@ -53,7 +53,11 @@ public static function run(string $test): void
5353
} catch (ReflectionException) {
5454
// pass, __construct() does not exist
5555
}
56-
(new $test(...$params))->run();
56+
$testCase = new $test(...$params);
57+
if (!$testCase instanceof TestCase) {
58+
throw new LogicException(sprintf("%s() can only be used to run tests that extend %s", __METHOD__, TestCase::class));
59+
}
60+
$testCase->run();
5761
}
5862

5963

app/vendor/composer/installed.json

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

app/vendor/composer/installed.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => 'spaze/michalspacek.cz',
44
'pretty_version' => 'dev-main',
55
'version' => 'dev-main',
6-
'reference' => '8421cabb14aec6c1434c743e4c6b1887c58b931c',
6+
'reference' => '07f904390f47be8c4f342b68cc1598f22cd86640',
77
'type' => 'project',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -326,9 +326,9 @@
326326
'dev_requirement' => true,
327327
),
328328
'phpstan/phpstan' => array(
329-
'pretty_version' => '2.1.1',
330-
'version' => '2.1.1.0',
331-
'reference' => 'cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7',
329+
'pretty_version' => '2.1.2',
330+
'version' => '2.1.2.0',
331+
'reference' => '7d08f569e582ade182a375c366cbd896eccadd3a',
332332
'type' => 'library',
333333
'install_path' => __DIR__ . '/../phpstan/phpstan',
334334
'aliases' => array(),
@@ -403,7 +403,7 @@
403403
'roave/security-advisories' => array(
404404
'pretty_version' => 'dev-latest',
405405
'version' => 'dev-latest',
406-
'reference' => 'e7a38fcc13e4ddfe9a28d5c7bf50aa9a9da758ec',
406+
'reference' => 'fb6b00411f2c212631318ab412b2208632e507ba',
407407
'type' => 'metapackage',
408408
'install_path' => null,
409409
'aliases' => array(
@@ -468,7 +468,7 @@
468468
'spaze/michalspacek.cz' => array(
469469
'pretty_version' => 'dev-main',
470470
'version' => 'dev-main',
471-
'reference' => '8421cabb14aec6c1434c743e4c6b1887c58b931c',
471+
'reference' => '07f904390f47be8c4f342b68cc1598f22cd86640',
472472
'type' => 'project',
473473
'install_path' => __DIR__ . '/../../',
474474
'aliases' => array(),
@@ -511,9 +511,9 @@
511511
'dev_requirement' => false,
512512
),
513513
'spaze/phpstan-disallowed-calls' => array(
514-
'pretty_version' => 'v4.1.1',
515-
'version' => '4.1.1.0',
516-
'reference' => '3ea4de4944c58f3acfb1de6e991c9907076f7eec',
514+
'pretty_version' => 'v4.2.0',
515+
'version' => '4.2.0.0',
516+
'reference' => '676796f9a9bb31861e11e7a9a20d9a671fe43743',
517517
'type' => 'phpstan-extension',
518518
'install_path' => __DIR__ . '/../spaze/phpstan-disallowed-calls',
519519
'aliases' => array(),
36.4 KB
Binary file not shown.
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@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oi0R8kJPIku5SjYaZ3zElPXcvk+5w8m111VfUMxCm363
7+
EBbTyFkcdpQvx8x0T3rbAyHLOcOxkmShsvIT47JyiKXQSbEWrCjY5KTa9wNljEMF
8+
61sN77sMfxFTQ4UfQaiCcXeMeOABRhq1Dd5vxAEg5Zl5JKL4YzVOSMXXRJ6ANtle
9+
ofQGkFsEnpuGB+jloLAjwsM/IoRDJR6ZZ+utjkrcD5AWkTzSa1llP9UhI9YeB1Jl
10+
ZZfsrvWU1xAUwHY6Aed/D5QvdOZZAT+QlYCDzpM//fjqPHgdlRoEshJtsU6x/sGa
11+
lmtxyhGrU6g0ZMqvb7TrOMFq6KloPwFXFjoLQpgA41krdosw56PDQtU7Z/uswrvN
12+
eD3of4I5Wh7jji+sKUdIAw0D9ZKPFMQd+KWgffmWXc76pwcfmIKlJeadxdCRS7Uk
13+
8Lp+UO7YTEsczndq+jjNPMSZO66doLguIRhNRFeUGzndYGpug3UHuLIW6FRxs8EY
14+
DTj9/kg4PWc8NvYgODuuIQFW4aadcLH1OZeEJbp7uk55a+jtOgo=
15+
=nqQR
1616
-----END PGP SIGNATURE-----

app/vendor/spaze/phpstan-disallowed-calls/docs/custom-rules.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ You can treat some language constructs as functions and disallow it in `disallow
163163
- `empty()`
164164
- `eval()`
165165
- `exit()`
166+
- `isset()`
166167
- `print()`
168+
- `unset()`
167169

168170
To disallow naive object creation (`new ClassName()` or `new $classname`), disallow `NameSpace\ClassName::__construct` in `disallowedMethodCalls`. Works even when there's no constructor defined in that class.
169171

app/vendor/spaze/phpstan-disallowed-calls/extension.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,14 @@ services:
297297
factory: Spaze\PHPStan\Rules\Disallowed\Calls\EmptyCalls(forbiddenCalls: %disallowedFunctionCalls%)
298298
tags:
299299
- phpstan.rules.rule
300+
-
301+
factory: Spaze\PHPStan\Rules\Disallowed\Calls\IssetCalls(forbiddenCalls: %disallowedFunctionCalls%)
302+
tags:
303+
- phpstan.rules.rule
304+
-
305+
factory: Spaze\PHPStan\Rules\Disallowed\Calls\UnsetCalls(forbiddenCalls: %disallowedFunctionCalls%)
306+
tags:
307+
- phpstan.rules.rule
300308
-
301309
factory: Spaze\PHPStan\Rules\Disallowed\Calls\ExitDieCalls(forbiddenCalls: %disallowedFunctionCalls%)
302310
tags:

0 commit comments

Comments
 (0)