Skip to content

refactor(SanitizerContract): remove unused interface #242

refactor(SanitizerContract): remove unused interface

refactor(SanitizerContract): remove unused interface #242

Triggered via push August 3, 2023 01:32
Status Failure
Total duration 49s
Artifacts

psalm.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
UndefinedInterfaceMethod: src/Collectors/ApplicationCollector.php#L34
src/Collectors/ApplicationCollector.php:34:44: UndefinedInterfaceMethod: Method Illuminate\Contracts\Container\Container::version does not exist (see https://psalm.dev/181)
UndefinedInterfaceMethod: src/Collectors/ApplicationCollector.php#L35
src/Collectors/ApplicationCollector.php:35:48: UndefinedInterfaceMethod: Method Illuminate\Contracts\Container\Container::environment does not exist (see https://psalm.dev/181)
InvalidReturnType: src/Collectors/ExceptionBasicCollector.php#L23
src/Collectors/ExceptionBasicCollector.php:23:16: InvalidReturnType: The declared return type 'array{class: class-string<Throwable>|true, code: int|string, file: string, line: int, message: string, preview: array<array-key, mixed>}' for Guanguans\LaravelExceptionNotify\Collectors\ExceptionBasicCollector::collect is incorrect, got 'array{class: class-string<Throwable>, code: int|string, file: string, line: int, message: string}' (see https://psalm.dev/011)
InvalidReturnStatement: src/Collectors/ExceptionBasicCollector.php#L27
src/Collectors/ExceptionBasicCollector.php:27:16: InvalidReturnStatement: The inferred type 'array{class: class-string<Throwable>, code: int|string, file: string, line: int, message: string}' does not match the declared return type 'array{class: class-string<Throwable>|true, code: int|string, file: string, line: int, message: string, preview: array<array-key, mixed>}' for Guanguans\LaravelExceptionNotify\Collectors\ExceptionBasicCollector::collect (see https://psalm.dev/128)
InvalidReturnType: src/Collectors/RequestCookieCollector.php#L26
src/Collectors/RequestCookieCollector.php:26:32: InvalidReturnType: The declared return type 'array<array-key, mixed>' for Guanguans\LaravelExceptionNotify\Collectors\RequestCookieCollector::collect is incorrect, got 'array<array-key, mixed>|null|string' (see https://psalm.dev/011)
InvalidReturnStatement: src/Collectors/RequestCookieCollector.php#L28
src/Collectors/RequestCookieCollector.php:28:16: InvalidReturnStatement: The inferred type 'array<array-key, mixed>|null|string' does not match the declared return type 'array<array-key, mixed>' for Guanguans\LaravelExceptionNotify\Collectors\RequestCookieCollector::collect (see https://psalm.dev/128)
NullableReturnStatement: src/Collectors/RequestCookieCollector.php#L28
src/Collectors/RequestCookieCollector.php:28:16: NullableReturnStatement: The declared return type 'array<array-key, mixed>' for Guanguans\LaravelExceptionNotify\Collectors\RequestCookieCollector::collect is not nullable, but the function returns 'array<array-key, mixed>|null|string' (see https://psalm.dev/139)
InvalidReturnType: src/Collectors/RequestQueryCollector.php#L26
src/Collectors/RequestQueryCollector.php:26:32: InvalidReturnType: The declared return type 'array<array-key, mixed>' for Guanguans\LaravelExceptionNotify\Collectors\RequestQueryCollector::collect is incorrect, got 'array<array-key, mixed>|null|string' (see https://psalm.dev/011)
InvalidReturnStatement: src/Collectors/RequestQueryCollector.php#L28
src/Collectors/RequestQueryCollector.php:28:16: InvalidReturnStatement: The inferred type 'array<array-key, mixed>|null|string' does not match the declared return type 'array<array-key, mixed>' for Guanguans\LaravelExceptionNotify\Collectors\RequestQueryCollector::collect (see https://psalm.dev/128)
NullableReturnStatement: src/Collectors/RequestQueryCollector.php#L28
src/Collectors/RequestQueryCollector.php:28:16: NullableReturnStatement: The declared return type 'array<array-key, mixed>' for Guanguans\LaravelExceptionNotify\Collectors\RequestQueryCollector::collect is not nullable, but the function returns 'array<array-key, mixed>|null|string' (see https://psalm.dev/139)