Skip to content

Fix PHP 8.4 deprecations and add some typing#8

Merged
migo315 merged 1 commit intoplayox:masterfrom
calderholding-r:php-8.4-deprecations
Feb 7, 2025
Merged

Fix PHP 8.4 deprecations and add some typing#8
migo315 merged 1 commit intoplayox:masterfrom
calderholding-r:php-8.4-deprecations

Conversation

@calderholding-r
Copy link

Hello,

We're getting a

Deprecated: Flagception\Manager\FeatureManager::__construct(): Implicitly marking parameter $decorator as nullable is deprecated, the explicit nullable type must be used instead in vendor/flagception/flagception/src/Manager/FeatureManager.php on line 37 deprecation message.

This is due to the public function __construct(FeatureActivatorInterface $activator, ContextDecoratorInterface $decorator = null) in master/src/Manager/FeatureManager.php not being PHP 8.4 compatible. More info about this deprecation: https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

This pull request should fix this. I also added some extra typing. A pull request for the Symfony flagception bundle repository follows momentarily.

@migo315
Copy link

migo315 commented Feb 7, 2025

Great work. Thank you very much :-)

@migo315 migo315 merged commit b721d6c into playox:master Feb 7, 2025
0 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants