Implement custom FiberFactory interface #508
Annotations
12 errors and 42 warnings
PossiblyNullFunctionCall:
src/EventLoop/Internal/AbstractDriver.php#L642
src/EventLoop/Internal/AbstractDriver.php:642:21: PossiblyNullFunctionCall: Cannot call function on possibly null value (see https://psalm.dev/094)
|
PossiblyNullArgument:
src/EventLoop/Internal/AbstractDriver.php#L647
src/EventLoop/Internal/AbstractDriver.php:647:73: PossiblyNullArgument: Argument 1 of Revolt\EventLoop\UncaughtThrowable::throwingErrorHandler cannot be null, possibly null value provided (see https://psalm.dev/078)
|
InaccessibleProperty:
src/EventLoop/TracingFiberFactory.php#L40
src/EventLoop/TracingFiberFactory.php:40:9: InaccessibleProperty: Revolt\EventLoop\TracingFiberFactory::$map is marked readonly (see https://psalm.dev/054)
|
PHP 8.2
Process completed with exit code 2.
|
PossiblyNullFunctionCall:
src/EventLoop/Internal/AbstractDriver.php#L642
src/EventLoop/Internal/AbstractDriver.php:642:21: PossiblyNullFunctionCall: Cannot call function on possibly null value (see https://psalm.dev/094)
|
PossiblyNullArgument:
src/EventLoop/Internal/AbstractDriver.php#L647
src/EventLoop/Internal/AbstractDriver.php:647:73: PossiblyNullArgument: Argument 1 of Revolt\EventLoop\UncaughtThrowable::throwingErrorHandler cannot be null, possibly null value provided (see https://psalm.dev/078)
|
InaccessibleProperty:
src/EventLoop/TracingFiberFactory.php#L40
src/EventLoop/TracingFiberFactory.php:40:9: InaccessibleProperty: Revolt\EventLoop\TracingFiberFactory::$map is marked readonly (see https://psalm.dev/054)
|
PHP 8.1
Process completed with exit code 2.
|
PossiblyNullFunctionCall:
src/EventLoop/Internal/AbstractDriver.php#L642
src/EventLoop/Internal/AbstractDriver.php:642:21: PossiblyNullFunctionCall: Cannot call function on possibly null value (see https://psalm.dev/094)
|
PossiblyNullArgument:
src/EventLoop/Internal/AbstractDriver.php#L647
src/EventLoop/Internal/AbstractDriver.php:647:73: PossiblyNullArgument: Argument 1 of Revolt\EventLoop\UncaughtThrowable::throwingErrorHandler cannot be null, possibly null value provided (see https://psalm.dev/078)
|
InaccessibleProperty:
src/EventLoop/TracingFiberFactory.php#L40
src/EventLoop/TracingFiberFactory.php:40:9: InaccessibleProperty: Revolt\EventLoop\TracingFiberFactory::$map is marked readonly (see https://psalm.dev/054)
|
PHP 8.3
Process completed with exit code 2.
|
PHP 8.2
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|
PHP 8.1
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|
PHP 8.3
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|
PHP 8.4
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|
PHP 8.2
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
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/
|
MixedMethodCall:
examples/benchmark-memory.php#L24
examples/benchmark-memory.php:24:21: MixedMethodCall: Cannot call constructor on an unknown class (see https://psalm.dev/015)
|
MixedArgumentTypeCoercion:
examples/benchmark-ticks-delay.php#L13
examples/benchmark-ticks-delay.php:13:26: MixedArgumentTypeCoercion: Argument 1 of Revolt\EventLoop::defer expects Closure(string):void, but parent type Closure provided (see https://psalm.dev/194)
|
MixedArgumentTypeCoercion:
examples/benchmark-timers-delay.php#L13
examples/benchmark-timers-delay.php:13:29: MixedArgumentTypeCoercion: Argument 2 of Revolt\EventLoop::delay expects Closure(string):void, but parent type Closure provided (see https://psalm.dev/194)
|
MixedAssignment:
src/EventLoop/Driver/EvDriver.php#L169
src/EventLoop/Driver/EvDriver.php:169:32: MixedAssignment: Unable to determine the type that $callback is being assigned to (see https://psalm.dev/032)
|
MixedArrayOffset:
src/EventLoop/Driver/EvDriver.php#L170
src/EventLoop/Driver/EvDriver.php:170:24: MixedArrayOffset: Cannot access value on variable $this->events using mixed offset (see https://psalm.dev/031)
|
MixedAssignment:
src/EventLoop/Driver/EvDriver.php#L170
src/EventLoop/Driver/EvDriver.php:170:38: MixedAssignment: Unable to determine the type that $id is being assigned to (see https://psalm.dev/032)
|
MixedPropertyFetch:
src/EventLoop/Driver/EvDriver.php#L170
src/EventLoop/Driver/EvDriver.php:170:44: MixedPropertyFetch: Cannot fetch property on mixed var $callback (see https://psalm.dev/034)
|
MixedArrayOffset:
src/EventLoop/Driver/EvDriver.php#L174
src/EventLoop/Driver/EvDriver.php:174:21: MixedArrayOffset: Cannot access value on variable $this->events[$id] using mixed offset (see https://psalm.dev/031)
|
MixedPropertyTypeCoercion:
src/EventLoop/Driver/EvDriver.php#L174
src/EventLoop/Driver/EvDriver.php:174:21: MixedPropertyTypeCoercion: $this->events expects 'array<string, EvWatcher>', parent type `non-empty-array<array-key, EvWatcher>` provided (see https://psalm.dev/196)
|
MixedArrayOffset:
src/EventLoop/Driver/EvDriver.php#L178
src/EventLoop/Driver/EvDriver.php:178:21: MixedArrayOffset: Cannot access value on variable $this->events[$id] using mixed offset (see https://psalm.dev/031)
|
PHP 8.1
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
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/
|
MixedMethodCall:
examples/benchmark-memory.php#L24
examples/benchmark-memory.php:24:21: MixedMethodCall: Cannot call constructor on an unknown class (see https://psalm.dev/015)
|
MixedArgumentTypeCoercion:
examples/benchmark-ticks-delay.php#L13
examples/benchmark-ticks-delay.php:13:26: MixedArgumentTypeCoercion: Argument 1 of Revolt\EventLoop::defer expects Closure(string):void, but parent type Closure provided (see https://psalm.dev/194)
|
MixedArgumentTypeCoercion:
examples/benchmark-timers-delay.php#L13
examples/benchmark-timers-delay.php:13:29: MixedArgumentTypeCoercion: Argument 2 of Revolt\EventLoop::delay expects Closure(string):void, but parent type Closure provided (see https://psalm.dev/194)
|
MixedAssignment:
src/EventLoop/Driver/EvDriver.php#L169
src/EventLoop/Driver/EvDriver.php:169:32: MixedAssignment: Unable to determine the type that $callback is being assigned to (see https://psalm.dev/032)
|
MixedArrayOffset:
src/EventLoop/Driver/EvDriver.php#L170
src/EventLoop/Driver/EvDriver.php:170:24: MixedArrayOffset: Cannot access value on variable $this->events using mixed offset (see https://psalm.dev/031)
|
MixedAssignment:
src/EventLoop/Driver/EvDriver.php#L170
src/EventLoop/Driver/EvDriver.php:170:38: MixedAssignment: Unable to determine the type that $id is being assigned to (see https://psalm.dev/032)
|
MixedPropertyFetch:
src/EventLoop/Driver/EvDriver.php#L170
src/EventLoop/Driver/EvDriver.php:170:44: MixedPropertyFetch: Cannot fetch property on mixed var $callback (see https://psalm.dev/034)
|
MixedArrayOffset:
src/EventLoop/Driver/EvDriver.php#L174
src/EventLoop/Driver/EvDriver.php:174:21: MixedArrayOffset: Cannot access value on variable $this->events[$id] using mixed offset (see https://psalm.dev/031)
|
MixedPropertyTypeCoercion:
src/EventLoop/Driver/EvDriver.php#L174
src/EventLoop/Driver/EvDriver.php:174:21: MixedPropertyTypeCoercion: $this->events expects 'array<string, EvWatcher>', parent type `non-empty-array<array-key, EvWatcher>` provided (see https://psalm.dev/196)
|
MixedArrayOffset:
src/EventLoop/Driver/EvDriver.php#L178
src/EventLoop/Driver/EvDriver.php:178:21: MixedArrayOffset: Cannot access value on variable $this->events[$id] using mixed offset (see https://psalm.dev/031)
|
PHP 8.3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
MixedMethodCall:
examples/benchmark-memory.php#L24
examples/benchmark-memory.php:24:21: MixedMethodCall: Cannot call constructor on an unknown class (see https://psalm.dev/015)
|
MixedArgumentTypeCoercion:
examples/benchmark-ticks-delay.php#L13
examples/benchmark-ticks-delay.php:13:26: MixedArgumentTypeCoercion: Argument 1 of Revolt\EventLoop::defer expects Closure(string):void, but parent type Closure provided (see https://psalm.dev/194)
|
MixedArgumentTypeCoercion:
examples/benchmark-timers-delay.php#L13
examples/benchmark-timers-delay.php:13:29: MixedArgumentTypeCoercion: Argument 2 of Revolt\EventLoop::delay expects Closure(string):void, but parent type Closure provided (see https://psalm.dev/194)
|
MixedAssignment:
src/EventLoop/Driver/EvDriver.php#L169
src/EventLoop/Driver/EvDriver.php:169:32: MixedAssignment: Unable to determine the type that $callback is being assigned to (see https://psalm.dev/032)
|
MixedArrayOffset:
src/EventLoop/Driver/EvDriver.php#L170
src/EventLoop/Driver/EvDriver.php:170:24: MixedArrayOffset: Cannot access value on variable $this->events using mixed offset (see https://psalm.dev/031)
|
MixedAssignment:
src/EventLoop/Driver/EvDriver.php#L170
src/EventLoop/Driver/EvDriver.php:170:38: MixedAssignment: Unable to determine the type that $id is being assigned to (see https://psalm.dev/032)
|
MixedPropertyFetch:
src/EventLoop/Driver/EvDriver.php#L170
src/EventLoop/Driver/EvDriver.php:170:44: MixedPropertyFetch: Cannot fetch property on mixed var $callback (see https://psalm.dev/034)
|
MixedArrayOffset:
src/EventLoop/Driver/EvDriver.php#L174
src/EventLoop/Driver/EvDriver.php:174:21: MixedArrayOffset: Cannot access value on variable $this->events[$id] using mixed offset (see https://psalm.dev/031)
|
MixedPropertyTypeCoercion:
src/EventLoop/Driver/EvDriver.php#L174
src/EventLoop/Driver/EvDriver.php:174:21: MixedPropertyTypeCoercion: $this->events expects 'array<string, EvWatcher>', parent type `non-empty-array<array-key, EvWatcher>` provided (see https://psalm.dev/196)
|
MixedArrayOffset:
src/EventLoop/Driver/EvDriver.php#L178
src/EventLoop/Driver/EvDriver.php:178:21: MixedArrayOffset: Cannot access value on variable $this->events[$id] using mixed offset (see https://psalm.dev/031)
|
PHP 8.3
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.4
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP 8.4
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/
|