Add more error handling #332
Annotations
10 errors and 2 warnings
Run static analysis:
examples/hello-world.php#L46
examples/hello-world.php:46:91: PossiblyNullReference: Cannot call method withApplicationLayerProtocols on possibly null value (see https://psalm.dev/083)
|
Run static analysis:
src/Driver/Http3Driver.php#L44
src/Driver/Http3Driver.php:44:20: PropertyNotSetInConstructor: Property Amp\Http\Server\Driver\Http3Driver::$client is not defined in constructor of Amp\Http\Server\Driver\Http3Driver or in any private or final methods called in the constructor (see https://psalm.dev/074)
|
Run static analysis:
src/Driver/Http3Driver.php#L45
src/Driver/Http3Driver.php:45:28: PropertyNotSetInConstructor: Property Amp\Http\Server\Driver\Http3Driver::$connection is not defined in constructor of Amp\Http\Server\Driver\Http3Driver or in any private or final methods called in the constructor (see https://psalm.dev/074)
|
Run static analysis:
src/Driver/Http3Driver.php#L50
src/Driver/Http3Driver.php:50:25: PropertyNotSetInConstructor: Property Amp\Http\Server\Driver\Http3Driver::$writer is not defined in constructor of Amp\Http\Server\Driver\Http3Driver or in any private or final methods called in the constructor (see https://psalm.dev/074)
|
Run static analysis:
src/Driver/Http3Driver.php#L68
src/Driver/Http3Driver.php:68:33: PropertyTypeCoercion: $this->requestStreams expects 'WeakMap<Amp\Http\Server\Request, Amp\Quic\QuicSocket>', parent type 'WeakMap<object, mixed>' provided (see https://psalm.dev/198)
|
Run static analysis:
src/Driver/Http3Driver.php#L152
src/Driver/Http3Driver.php:152:29: PossiblyInvalidPropertyAssignmentValue: $this->connection with declared type 'Amp\Quic\QuicConnection' cannot be assigned possibly different type 'Amp\Quic\QuicConnection|Amp\Socket\Socket' (see https://psalm.dev/147)
|
Run static analysis:
src/Driver/Http3Driver.php#L153
src/Driver/Http3Driver.php:153:41: PossiblyInvalidArgument: Argument 1 of Amp\Http\Server\Driver\Internal\Http3\Http3Writer::__construct expects Amp\Quic\QuicConnection, but possibly different type Amp\Quic\QuicConnection|Amp\Socket\Socket provided (see https://psalm.dev/092)
|
Run static analysis:
src/Driver/Http3Driver.php#L157
src/Driver/Http3Driver.php:157:35: PossiblyInvalidArgument: Argument 1 of Amp\Http\Server\Driver\Internal\Http3\Http3Parser::__construct expects Amp\Quic\QuicConnection, but possibly different type Amp\Quic\QuicConnection|Amp\Socket\Socket provided (see https://psalm.dev/092)
|
Run static analysis:
src/Driver/Http3Driver.php#L295
src/Driver/Http3Driver.php:295:68: UndefinedVariable: Cannot find referenced variable $bodySizeLimit (see https://psalm.dev/024)
|
Run static analysis:
src/Driver/Http3Driver.php#L302
src/Driver/Http3Driver.php:302:41: TypeDoesNotContainType: Type null for $dataSuspension is always !null (see https://psalm.dev/056)
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Get Composer cache directory
The `set-output` 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/
|
The logs for this run have expired and are no longer available.
Loading