Skip to content

Add more error handling #332

Add more error handling

Add more error handling #332

Triggered via push January 11, 2024 21:03
Status Failure
Total duration 48s
Artifacts

ci.yml

on: push
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 7 warnings
PHP 8.2 on Windows
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires amphp/quic dev-master -> satisfiable by amphp/quic[dev-master]. - amphp/quic dev-master requires ext-ffi * -> it is missing from your system. Install or enable PHP's ffi extension. To enable extensions, verify that they are enabled in your .ini files: - C:\tools\php\php.ini You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode. Alternatively, you can run Composer with `--ignore-platform-req=ext-ffi` to temporarily ignore these required extensions.
PHP 8.2 on Windows
Process completed with exit code 1.
PossiblyNullReference: 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)
PropertyNotSetInConstructor: 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)
PropertyNotSetInConstructor: 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)
PropertyNotSetInConstructor: 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)
PropertyTypeCoercion: 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)
PossiblyInvalidPropertyAssignmentValue: 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)
PossiblyInvalidArgument: 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)
PossiblyInvalidArgument: 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)
UndefinedVariable: src/Driver/Http3Driver.php#L295
src/Driver/Http3Driver.php:295:68: UndefinedVariable: Cannot find referenced variable $bodySizeLimit (see https://psalm.dev/024)
TypeDoesNotContainType: src/Driver/Http3Driver.php#L302
src/Driver/Http3Driver.php:302:41: TypeDoesNotContainType: Type null for $dataSuspension is always !null (see https://psalm.dev/056)
PHP 8.2 on macOS
The operation was canceled.
PossiblyNullReference: 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)
PropertyNotSetInConstructor: 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)
PropertyNotSetInConstructor: 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)
PropertyNotSetInConstructor: 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)
PropertyTypeCoercion: 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)
PossiblyInvalidPropertyAssignmentValue: 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)
PossiblyInvalidArgument: 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)
PossiblyInvalidArgument: 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)
UndefinedVariable: src/Driver/Http3Driver.php#L295
src/Driver/Http3Driver.php:295:68: UndefinedVariable: Cannot find referenced variable $bodySizeLimit (see https://psalm.dev/024)
TypeDoesNotContainType: src/Driver/Http3Driver.php#L302
src/Driver/Http3Driver.php:302:41: TypeDoesNotContainType: Type null for $dataSuspension is always !null (see https://psalm.dev/056)
PHP 8.2 on Windows
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/
PHP 8.2 on Windows
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/
PHP 8.2
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/
PHP 8.2
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/
PHP 8.2 on macOS
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.1
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/
PHP 8.1
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/