refactor: Update package to support php >=8 and Psr Log 2 || 3 #17
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
php-static-analysis.yml
on: pull_request
coding-standards-analysis-php-80
/
coding-standards-php
24s
coding-standards-analysis-php-81
/
coding-standards-php
16s
coding-standards-analysis-php-82
/
coding-standards-php
22s
static-code-analysis-php-80
/
static-analysis-php
30s
static-code-analysis-php-81
/
static-analysis-php
17s
static-code-analysis-php-82
/
static-analysis-php
21s
Matrix: lint-php / lint-php
Annotations
18 errors and 3 warnings
InvalidPropertyAssignmentValue:
src/Data/FailedLogin.php#L116
src/Data/FailedLogin.php:116:31: InvalidPropertyAssignmentValue: $this->attemptsData with declared type 'array<string, array{count: int, last_logged: int}>|null' cannot be assigned type 'non-empty-array<array-key, ArrayAccess|array{count: 0|mixed, last_logged: 0|mixed, ...<array-key, mixed>}|mixed>' (see https://psalm.dev/145)
|
PossiblyInvalidArgument:
src/DefaultHandler/LogsFolder.php#L40
src/DefaultHandler/LogsFolder.php:40:27: PossiblyInvalidArgument: Argument 1 of set_error_handler expects callable(int, string, string=, int=, array<array-key, mixed>=):bool|null, but possibly different type impure-callable():true provided (see https://psalm.dev/092)
|
TypeDoesNotContainType:
src/HookListener/CronDebugListener.php#L87
src/HookListener/CronDebugListener.php:87:28: TypeDoesNotContainType: Type non-empty-array<array-key, array<array-key, mixed>> for $cronArray is always !array<array-key, mixed> (see https://psalm.dev/056)
|
MethodSignatureMismatch:
src/PsrBridge.php#L12
src/PsrBridge.php:12:7: MethodSignatureMismatch: Method Inpsyde\Wonolog\PsrBridge::log with return type '' is different to return type 'void' of inherited method Psr\Log\LoggerInterface::log (see https://psalm.dev/042)
|
MethodSignatureMismatch:
src/PsrBridge.php#L75
src/PsrBridge.php:75:5: MethodSignatureMismatch: Method Inpsyde\Wonolog\PsrBridge::log with return type '' is different to return type 'void' of inherited method Psr\Log\LoggerTrait::log (see https://psalm.dev/042)
|
static-code-analysis-php-81 / static-analysis-php
Process completed with exit code 2.
|
InvalidPropertyAssignmentValue:
src/Data/FailedLogin.php#L116
src/Data/FailedLogin.php:116:31: InvalidPropertyAssignmentValue: $this->attemptsData with declared type 'array<string, array{count: int, last_logged: int}>|null' cannot be assigned type 'non-empty-array<array-key, ArrayAccess|array{count: 0|mixed, last_logged: 0|mixed, ...<array-key, mixed>}|mixed>' (see https://psalm.dev/145)
|
PossiblyInvalidArgument:
src/DefaultHandler/LogsFolder.php#L40
src/DefaultHandler/LogsFolder.php:40:27: PossiblyInvalidArgument: Argument 1 of set_error_handler expects callable(int, string, string=, int=, array<array-key, mixed>=):bool|null, but possibly different type impure-callable():true provided (see https://psalm.dev/092)
|
TypeDoesNotContainType:
src/HookListener/CronDebugListener.php#L87
src/HookListener/CronDebugListener.php:87:28: TypeDoesNotContainType: Type non-empty-array<array-key, array<array-key, mixed>> for $cronArray is always !array<array-key, mixed> (see https://psalm.dev/056)
|
MethodSignatureMismatch:
src/PsrBridge.php#L12
src/PsrBridge.php:12:7: MethodSignatureMismatch: Method Inpsyde\Wonolog\PsrBridge::log with return type '' is different to return type 'void' of inherited method Psr\Log\LoggerInterface::log (see https://psalm.dev/042)
|
MethodSignatureMismatch:
src/PsrBridge.php#L75
src/PsrBridge.php:75:5: MethodSignatureMismatch: Method Inpsyde\Wonolog\PsrBridge::log with return type '' is different to return type 'void' of inherited method Psr\Log\LoggerTrait::log (see https://psalm.dev/042)
|
static-code-analysis-php-82 / static-analysis-php
Process completed with exit code 2.
|
InvalidPropertyAssignmentValue:
src/Data/FailedLogin.php#L116
src/Data/FailedLogin.php:116:31: InvalidPropertyAssignmentValue: $this->attemptsData with declared type 'array<string, array{count: int, last_logged: int}>|null' cannot be assigned type 'non-empty-array<array-key, ArrayAccess|array{count: 0|mixed, last_logged: 0|mixed, ...<array-key, mixed>}|mixed>' (see https://psalm.dev/145)
|
PossiblyInvalidArgument:
src/DefaultHandler/LogsFolder.php#L40
src/DefaultHandler/LogsFolder.php:40:27: PossiblyInvalidArgument: Argument 1 of set_error_handler expects callable(int, string, string=, int=, array<array-key, mixed>=):bool|null, but possibly different type impure-callable():true provided (see https://psalm.dev/092)
|
TypeDoesNotContainType:
src/HookListener/CronDebugListener.php#L87
src/HookListener/CronDebugListener.php:87:28: TypeDoesNotContainType: Type non-empty-array<array-key, array<array-key, mixed>> for $cronArray is always !array<array-key, mixed> (see https://psalm.dev/056)
|
MethodSignatureMismatch:
src/PsrBridge.php#L12
src/PsrBridge.php:12:7: MethodSignatureMismatch: Method Inpsyde\Wonolog\PsrBridge::log with return type '' is different to return type 'void' of inherited method Psr\Log\LoggerInterface::log (see https://psalm.dev/042)
|
MethodSignatureMismatch:
src/PsrBridge.php#L75
src/PsrBridge.php:75:5: MethodSignatureMismatch: Method Inpsyde\Wonolog\PsrBridge::log with return type '' is different to return type 'void' of inherited method Psr\Log\LoggerTrait::log (see https://psalm.dev/042)
|
static-code-analysis-php-80 / static-analysis-php
Process completed with exit code 2.
|
lint-php / lint-php (8.2)
The PHP_MATRIX input is deprecated and will be removed in the future. Please create a matrix in your caller workflow and pass it to the PHP_VERSION input.
|
lint-php / lint-php (8.1)
The PHP_MATRIX input is deprecated and will be removed in the future. Please create a matrix in your caller workflow and pass it to the PHP_VERSION input.
|
lint-php / lint-php (8.0)
The PHP_MATRIX input is deprecated and will be removed in the future. Please create a matrix in your caller workflow and pass it to the PHP_VERSION input.
|