Skip to content

Updating to symfony 6 and 7 #13

Updating to symfony 6 and 7

Updating to symfony 6 and 7 #13

Triggered via push February 20, 2024 13:43
Status Failure
Total duration 27s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 6 warnings
PHP-CS-Fixer
Process completed with exit code 8.
PHPStan: src/Adapter/PostHogAdapter.php#L98
Unreachable statement - code above always terminates.
PHPStan: src/EventListener/RequestListener.php#L41
Call to an undefined method Symfony\Component\HttpKernel\Event\KernelEvent::isMasterRequest().
PHPStan: src/Model/AliasMessage.php#L15
Method PostHog\PostHogBundle\Model\AliasMessage::toArray() has no return type specified.
PHPStan: src/Model/GroupIdentifyMessage.php#L19
Method PostHog\PostHogBundle\Model\GroupIdentifyMessage::toArray() return type has no value type specified in iterable type array.
PHPStan: src/Model/IdentifyMessage.php#L9
Method PostHog\PostHogBundle\Model\IdentifyMessage::__construct() has parameter $set with no value type specified in iterable type array.
PHPStan: src/Model/IdentifyMessage.php#L15
Method PostHog\PostHogBundle\Model\IdentifyMessage::toArray() return type has no value type specified in iterable type array.
PHPStan: src/Model/Message.php#L9
Method PostHog\PostHogBundle\Model\Message::__construct() has parameter $properties with no value type specified in iterable type array.
PHPStan: src/Model/Message.php#L16
Method PostHog\PostHogBundle\Model\Message::toArray() return type has no value type specified in iterable type array.
PHPStan: src/functions.php#L14
Function PostHog\PostHogBundle\identify() has parameter $message with no value type specified in iterable type array.
PHPStan: src/functions.php#L16
Parameter #1 $message of method PostHog\PostHogBundle\Adapter\PostHogAdapter::identify() expects PostHog\PostHogBundle\Model\IdentifyMessage, array given.
MixedReturnTypeCoercion: src/Adapter/PostHogAdapter.php#L67
src/Adapter/PostHogAdapter.php:67:168: MixedReturnTypeCoercion: The declared return type 'array<array-key, string>' for PostHog\PostHogBundle\Adapter\PostHogAdapter::getAllFlags is more specific than the inferred return type 'array<array-key, mixed>' (see https://psalm.dev/197)
MixedReturnTypeCoercion: src/Adapter/PostHogAdapter.php#L69
src/Adapter/PostHogAdapter.php:69:16: MixedReturnTypeCoercion: The type 'array<array-key, mixed>' is more general than the declared return type 'array<array-key, string>' for PostHog\PostHogBundle\Adapter\PostHogAdapter::getAllFlags (see https://psalm.dev/197)
MixedReturnTypeCoercion: src/Adapter/PostHogAdapter.php#L75
src/Adapter/PostHogAdapter.php:75:83: MixedReturnTypeCoercion: The declared return type 'array<array-key, string>' for PostHog\PostHogBundle\Adapter\PostHogAdapter::fetchFeatureVariants is more specific than the inferred return type 'array<array-key, mixed>' (see https://psalm.dev/197)
MixedReturnTypeCoercion: src/Adapter/PostHogAdapter.php#L77
src/Adapter/PostHogAdapter.php:77:16: MixedReturnTypeCoercion: The type 'array<array-key, mixed>' is more general than the declared return type 'array<array-key, string>' for PostHog\PostHogBundle\Adapter\PostHogAdapter::fetchFeatureVariants (see https://psalm.dev/197)
MixedArgument: src/Adapter/PostHogAdapter.php#L82
src/Adapter/PostHogAdapter.php:82:37: MixedArgument: Argument 1 of PostHog\Client::alias cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
RedundantConditionGivenDocblockType: src/Adapter/PostHogAdapter.php#L94
src/Adapter/PostHogAdapter.php:94:13: RedundantConditionGivenDocblockType: Docblock-defined type bool for $result is always bool (see https://psalm.dev/156)
TypeDoesNotContainType: src/Adapter/PostHogAdapter.php#L98
src/Adapter/PostHogAdapter.php:98:13: TypeDoesNotContainType: Type never for $result is never string (see https://psalm.dev/056)
NoValue: src/Adapter/PostHogAdapter.php#L99
src/Adapter/PostHogAdapter.php:99:36: NoValue: All possible types for this argument were invalidated - This may be dead code (see https://psalm.dev/179)
RiskyTruthyFalsyComparison: src/Client/ClientBuilder.php#L22
src/Client/ClientBuilder.php:22:26: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
ForbiddenCode: src/Command/PostHogTestCommand.php#L21
src/Command/PostHogTestCommand.php:21:19: ForbiddenCode: Unsafe shell_exec (see https://psalm.dev/002)
PHP-CS-Fixer
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP-CS-Fixer
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/
PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHPStan
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/
Psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Psalm
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/