Skip to content

refactor: Update package to support php >=8 and Psr Log 2 || 3 #15

refactor: Update package to support php >=8 and Psr Log 2 || 3

refactor: Update package to support php >=8 and Psr Log 2 || 3 #15

Triggered via pull request November 3, 2023 17:36
@luislardluislard
synchronize #74
3.x-proposal
Status Failure
Total duration 46s
Artifacts

php-static-analysis.yml

on: pull_request
coding-standards-analysis-php-80  /  coding-standards-php
19s
coding-standards-analysis-php-80 / coding-standards-php
coding-standards-analysis-php-81  /  coding-standards-php
18s
coding-standards-analysis-php-81 / coding-standards-php
coding-standards-analysis-php-82  /  coding-standards-php
30s
coding-standards-analysis-php-82 / coding-standards-php
static-code-analysis-php  /  static-analysis-php
27s
static-code-analysis-php / static-analysis-php
Matrix: lint-php / lint-php
Fit to window
Zoom out
Zoom in

Annotations

6 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 / static-analysis-php
Process completed with exit code 2.
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.
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.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.