-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
When running the plugin on newer versions of PHP, a deprecation warning is triggered by the league/container dependency due to implicitly nullable constructor parameters.
The warning originates from the Container::__construct() method, where parameters are implicitly marked as nullable instead of using explicit nullable types.
Deprecated: Pressidium\WP\CookieConsent\Dependencies\League\Container\Container::__construct(): Implicitly marking parameter $definitions as nullable is deprecated, the explicit nullable type must be used instead in /home/***/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Container.php on line 49
Deprecated: Pressidium\WP\CookieConsent\Dependencies\League\Container\Container::__construct(): Implicitly marking parameter $providers as nullable is deprecated, the explicit nullable type must be used instead in /home/***/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Container.php on line 49
Deprecated: Pressidium\WP\CookieConsent\Dependencies\League\Container\Container::__construct(): Implicitly marking parameter $inflectors as nullable is deprecated, the explicit nullable type must be used instead in /home/***/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Container.php on line 49
Deprecated: Pressidium\WP\CookieConsent\Dependencies\League\Container\Container::add(): Implicitly marking parameter $shared as nullable is deprecated, the explicit nullable type must be used instead in /home/***/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Container.php on line 80
Deprecated: Pressidium\WP\CookieConsent\Dependencies\League\Container\Container::inflector(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /home/***/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Container.php on line 225
Deprecated: Pressidium\WP\CookieConsent\Dependencies\League\Container\Inflector\InflectorAggregate::add(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /home/***/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Inflector/InflectorAggregate.php on line 20
Deprecated: Pressidium\WP\CookieConsent\Dependencies\League\Container\Inflector\InflectorAggregateInterface::add(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /home/***/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Inflector/InflectorAggregateInterface.php on line 18
These warnings become visible in environments with E_DEPRECATED enabled. Addressing them would improve compatibility with modern PHP versions and reduce noise in log files.
Additional context
This issue is based on the discussion on this topic.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels