Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages #475

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions app/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions app/src/Test/TestCaseRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TestCaseRunner


/**
* @param class-string<TestCase> $test
* @param class-string $test
* @return void
*/
public static function run(string $test): void
Expand Down Expand Up @@ -53,7 +53,11 @@ public static function run(string $test): void
} catch (ReflectionException) {
// pass, __construct() does not exist
}
(new $test(...$params))->run();
$testCase = new $test(...$params);
if (!$testCase instanceof TestCase) {
throw new LogicException(sprintf("%s() can only be used to run tests that extend %s", __METHOD__, TestCase::class));
}
$testCase->run();
}


Expand Down
42 changes: 21 additions & 21 deletions app/vendor/composer/installed.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions app/vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'spaze/michalspacek.cz',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '8421cabb14aec6c1434c743e4c6b1887c58b931c',
'reference' => '07f904390f47be8c4f342b68cc1598f22cd86640',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -326,9 +326,9 @@
'dev_requirement' => true,
),
'phpstan/phpstan' => array(
'pretty_version' => '2.1.1',
'version' => '2.1.1.0',
'reference' => 'cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7',
'pretty_version' => '2.1.2',
'version' => '2.1.2.0',
'reference' => '7d08f569e582ade182a375c366cbd896eccadd3a',
'type' => 'library',
'install_path' => __DIR__ . '/../phpstan/phpstan',
'aliases' => array(),
Expand Down Expand Up @@ -403,7 +403,7 @@
'roave/security-advisories' => array(
'pretty_version' => 'dev-latest',
'version' => 'dev-latest',
'reference' => 'e7a38fcc13e4ddfe9a28d5c7bf50aa9a9da758ec',
'reference' => 'fb6b00411f2c212631318ab412b2208632e507ba',
'type' => 'metapackage',
'install_path' => null,
'aliases' => array(
Expand Down Expand Up @@ -468,7 +468,7 @@
'spaze/michalspacek.cz' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '8421cabb14aec6c1434c743e4c6b1887c58b931c',
'reference' => '07f904390f47be8c4f342b68cc1598f22cd86640',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -511,9 +511,9 @@
'dev_requirement' => false,
),
'spaze/phpstan-disallowed-calls' => array(
'pretty_version' => 'v4.1.1',
'version' => '4.1.1.0',
'reference' => '3ea4de4944c58f3acfb1de6e991c9907076f7eec',
'pretty_version' => 'v4.2.0',
'version' => '4.2.0.0',
'reference' => '676796f9a9bb31861e11e7a9a20d9a671fe43743',
'type' => 'phpstan-extension',
'install_path' => __DIR__ . '/../spaze/phpstan-disallowed-calls',
'aliases' => array(),
Expand Down
Binary file modified app/vendor/phpstan/phpstan/phpstan.phar
Binary file not shown.
26 changes: 13 additions & 13 deletions app/vendor/phpstan/phpstan/phpstan.phar.asc
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAmd6tp8ACgkQUcZzBf/C
5cCYSg//eO+kZhjgn2+iXQssspB2QIY36NGKKuxHFi5eQWNhRKFKM6jIIdqmcU2g
aawEQbg6OQMGK1e07LqUOTKPw0fjz2f9YcfxwkC+Q6rDix/8ir5LhO8XfDXdWtvW
424B+6B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dlRoEshJtsU6x/sGa
lmtxyhGrU6g0ZMqvb7TrOMFq6KloPwFXFjoLQpgA41krdosw56PDQtU7Z/uswrvN
eD3of4I5Wh7jji+sKUdIAw0D9ZKPFMQd+KWgffmWXc76pwcfmIKlJeadxdCRS7Uk
8Lp+UO7YTEsczndq+jjNPMSZO66doLguIRhNRFeUGzndYGpug3UHuLIW6FRxs8EY
DTj9/kg4PWc8NvYgODuuIQFW4aadcLH1OZeEJbp7uk55a+jtOgo=
=nqQR
-----END PGP SIGNATURE-----
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ You can treat some language constructs as functions and disallow it in `disallow
- `empty()`
- `eval()`
- `exit()`
- `isset()`
- `print()`
- `unset()`

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.

Expand Down
8 changes: 8 additions & 0 deletions app/vendor/spaze/phpstan-disallowed-calls/extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ services:
factory: Spaze\PHPStan\Rules\Disallowed\Calls\EmptyCalls(forbiddenCalls: %disallowedFunctionCalls%)
tags:
- phpstan.rules.rule
-
factory: Spaze\PHPStan\Rules\Disallowed\Calls\IssetCalls(forbiddenCalls: %disallowedFunctionCalls%)
tags:
- phpstan.rules.rule
-
factory: Spaze\PHPStan\Rules\Disallowed\Calls\UnsetCalls(forbiddenCalls: %disallowedFunctionCalls%)
tags:
- phpstan.rules.rule
-
factory: Spaze\PHPStan\Rules\Disallowed\Calls\ExitDieCalls(forbiddenCalls: %disallowedFunctionCalls%)
tags:
Expand Down
Loading
Loading