Fix type hinting of Subscription::$features
.
#2096
Annotations
5 errors
Run PSalm:
src/Model/Feature/Subscribed/SubscribedFeaturesCollection.php#L24
src/Model/Feature/Subscribed/SubscribedFeaturesCollection.php:24:5: MethodSignatureMismatch: Method SerendipityHQ\Bundle\FeaturesBundle\Model\Feature\Subscribed\SubscribedFeaturesCollection::__construct has fewer parameters than parent method SerendipityHQ\Bundle\FeaturesBundle\Model\Feature\AbstractFeaturesCollection::__construct (see https://psalm.dev/042)
|
Run PSalm:
src/Model/Subscription.php#L41
src/Model/Subscription.php:41:13: ParseError: Union types are not supported in PHP < 8 (see https://psalm.dev/173)
|
Run PSalm:
src/Model/Subscription.php#L129
src/Model/Subscription.php:129:36: InvalidReturnType: The declared return type 'SerendipityHQ\Bundle\FeaturesBundle\Model\Feature\Subscribed\SubscribedFeaturesCollection' for SerendipityHQ\Bundle\FeaturesBundle\Model\Subscription::getFeatures is incorrect, got 'SerendipityHQ\Bundle\FeaturesBundle\Model\Feature\Subscribed\SubscribedFeaturesCollection|array<array-key, mixed>|null' (see https://psalm.dev/011)
|
Run PSalm:
src/Model/Subscription.php#L131
src/Model/Subscription.php:131:16: InvalidReturnStatement: The inferred type 'SerendipityHQ\Bundle\FeaturesBundle\Model\Feature\Subscribed\SubscribedFeaturesCollection|array<array-key, mixed>|null' does not match the declared return type 'SerendipityHQ\Bundle\FeaturesBundle\Model\Feature\Subscribed\SubscribedFeaturesCollection' for SerendipityHQ\Bundle\FeaturesBundle\Model\Subscription::getFeatures (see https://psalm.dev/128)
|
Run PSalm
Process completed with exit code 2.
|
Loading