Skip to content

Conversation

@alies-dev
Copy link
Contributor

Summary

PHP 8.4 deprecates implicitly nullable parameter types. This PR adds explicit ? nullable type syntax to fix deprecation warnings.

Changes

  • Exchanger::__construct(): CacheInterface $cache = null?CacheInterface $cache = null
  • HttpService::__construct(): RequestFactoryInterface $requestFactory = null?RequestFactoryInterface $requestFactory = null

PHP 8.4 Deprecation

PHP Deprecated: Exchanger\Service\HttpService::__construct(): Implicitly marking parameter $requestFactory as nullable is deprecated, the explicit nullable type must be used instead
PHP Deprecated: Exchanger\Exchanger::__construct(): Implicitly marking parameter $cache as nullable is deprecated, the explicit nullable type must be used instead

This is a backwards-compatible change that works with PHP 7.1+.

PHP 8.4 deprecates implicitly nullable parameter types. This changes:
- Exchanger::__construct(): ?CacheInterface $cache = null
- HttpService::__construct(): ?RequestFactoryInterface $requestFactory = null

Fixes deprecation warnings when running on PHP 8.4.
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.

1 participant