Skip to content

Commit

Permalink
Fix type hinting of Subscription::$features.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerendir committed Oct 4, 2024
2 parents df77171 + f379716 commit d7c1247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.4|^8.0",
"php": "^8.0",
"ext-iconv": "*",
"ext-intl": "*",
"ext-json": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ abstract class Subscription implements SubscriptionInterface
*
* @ORM\Column(name="features", type="json", nullable=true)
*/
private ?SubscribedFeaturesCollection $features = null;
private null|array|SubscribedFeaturesCollection $features = null;

Check failure on line 41 in src/Model/Subscription.php

View workflow job for this annotation

GitHub Actions / psalm (ubuntu-latest, 8.1, ~4.4)

ParseError

src/Model/Subscription.php:41:13: ParseError: Union types are not supported in PHP < 8 (see https://psalm.dev/173)

Check failure on line 41 in src/Model/Subscription.php

View workflow job for this annotation

GitHub Actions / psalm (ubuntu-latest, 8.0, ~6.0)

ParseError

src/Model/Subscription.php:41:13: ParseError: Union types are not supported in PHP < 8 (see https://psalm.dev/173)

Check failure on line 41 in src/Model/Subscription.php

View workflow job for this annotation

GitHub Actions / psalm (ubuntu-latest, 8.1, ~5.4)

ParseError

src/Model/Subscription.php:41:13: ParseError: Union types are not supported in PHP < 8 (see https://psalm.dev/173)

Check failure on line 41 in src/Model/Subscription.php

View workflow job for this annotation

GitHub Actions / psalm (ubuntu-latest, 8.0, ~4.4)

ParseError

src/Model/Subscription.php:41:13: ParseError: Union types are not supported in PHP < 8 (see https://psalm.dev/173)

Check failure on line 41 in src/Model/Subscription.php

View workflow job for this annotation

GitHub Actions / psalm (ubuntu-latest, 8.0, ~5.4)

ParseError

src/Model/Subscription.php:41:13: ParseError: Union types are not supported in PHP < 8 (see https://psalm.dev/173)

Check failure on line 41 in src/Model/Subscription.php

View workflow job for this annotation

GitHub Actions / psalm (ubuntu-latest, 8.1, ~6.0)

ParseError

src/Model/Subscription.php:41:13: ParseError: Union types are not supported in PHP < 8 (see https://psalm.dev/173)

/** @ORM\Column(name="`renew_interval`", type="string", nullable=true) */
private ?string $renewInterval = null;
Expand Down

0 comments on commit d7c1247

Please sign in to comment.