chore(deps): update phpstan packages to v2 (major) #159
static-analysis.yml
on: pull_request
Static Analysis with PHPStan
14s
Static Analysis with Composer Unused
11s
Annotations
10 errors and 6 warnings
Static Analysis with PHPStan:
src/assert.php#L14
Parameter #1 $assertion of function assert expects bool|string, mixed given.
|
Static Analysis with PHPStan:
src/assert.php#L14
Possibly impure call to a callable in pure function Cdn77\Functions\assert_return().
|
Static Analysis with PHPStan:
src/assert.php#L14
Possibly impure call to function assert() in pure function Cdn77\Functions\assert_return().
|
Static Analysis with PHPStan:
src/noop.php#L7
Function Cdn77\Functions\noop() returns void but does not have any side effects.
|
Static Analysis with PHPStan:
tests/AssertTest.php#L22
Call to function Cdn77\Functions\assert_return() with 1 and Closure(mixed): ($value is int ? true : false) will always evaluate to true.
|
Static Analysis with PHPStan:
tests/DsTest.php#L29
PHPDoc tag @var with type callable(): Generator<mixed, array{int, bool}, mixed, mixed> is not subtype of native type Closure(): Generator<int, array{1|2, bool}, mixed, void>.
|
Static Analysis with PHPStan:
tests/DsTest.php#L45
PHPDoc tag @var with type callable(): Generator<int, bool, mixed, mixed> is not subtype of native type Closure(): Generator<1|2, bool, mixed, void>.
|
Static Analysis with PHPStan:
tests/DsTest.php#L61
PHPDoc tag @var with type callable(): Generator<int, string, mixed, mixed> is not subtype of native type Closure(): Generator<1|2, 'a'|'b'|'c'|'d', mixed, void>.
|
Static Analysis with PHPStan:
tests/DsTest.php#L87
PHPDoc tag @var with type callable(): Generator<int, string, mixed, mixed> is not subtype of native type Closure(): Generator<1|2, 'a'|'b', mixed, void>.
|
Static Analysis with PHPStan:
tests/DsTest.php#L107
PHPDoc tag @var with type callable(): Generator<int, bool, mixed, mixed> is not subtype of native type Closure(): Generator<1|2, bool, mixed, void>.
|
Static Analysis with Composer Unused
The following actions uses node12 which is deprecated and will be forced to run on node16: ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Static Analysis with Composer Unused
The following actions use a deprecated Node.js version and will be forced to run on node20: ramsey/composer-install@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Static Analysis with Composer Unused
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Static Analysis with PHPStan
The following actions uses node12 which is deprecated and will be forced to run on node16: ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Static Analysis with PHPStan
The following actions use a deprecated Node.js version and will be forced to run on node20: ramsey/composer-install@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Static Analysis with PHPStan
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|