Skip to content

Update File.php

Update File.php #5

Triggered via push December 2, 2024 03:15
Status Failure
Total duration 2m 50s
Artifacts

workflow.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors
RedundantCondition: demos/demo.php#L18
demos/demo.php:18:13: RedundantCondition: Type 4 for $var1 is always =int(4) (see https://psalm.dev/122)
InvalidNullableReturnType: src/Terremoth/Async/File.php#L20
src/Terremoth/Async/File.php:20:28: InvalidNullableReturnType: The declared return type 'int' for Terremoth\Async\File::run is not nullable, but 'null' contains null (see https://psalm.dev/144)
PossiblyUnusedReturnValue: src/Terremoth/Async/File.php#L20
src/Terremoth/Async/File.php:20:28: PossiblyUnusedReturnValue: The return value for this method is never used (see https://psalm.dev/273)
NullableReturnStatement: src/Terremoth/Async/File.php#L29
src/Terremoth/Async/File.php:29:16: NullableReturnStatement: The declared return type 'int' for Terremoth\Async\File::run is not nullable, but the function returns 'null' (see https://psalm.dev/139)
PossiblyUnusedReturnValue: src/Terremoth/Async/Process.php#L32
src/Terremoth/Async/Process.php:32:51: PossiblyUnusedReturnValue: The return value for this method is never used (see https://psalm.dev/273)
run
Process completed with exit code 2.