Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing PHPDoc annotation for Doctrine Cache implementations #2811

Conversation

samuel-nogueira-kununu
Copy link
Contributor

This fixes the following deprecations produced by Symfony:

  • User Deprecated: Method Doctrine\Common\Cache\Cache::fetch() might add mixed as a native return type declaration in the future. Do the same in implementation Aws\DoctrineCacheAdapter now to avoid errors or add an explicit @return annotation to suppress this message.
  • User Deprecated: Method Doctrine\Common\Cache\Cache::save() might add bool as a native return type declaration in the future. Do the same in implementation Aws\DoctrineCacheAdapter now to avoid errors or add an explicit @return annotation to suppress this message.
  • User Deprecated: Method Doctrine\Common\Cache\Cache::delete() might add bool as a native return type declaration in the future. Do the same in implementation Aws\DoctrineCacheAdapter now to avoid errors or add an explicit @return annotation to suppress this message.
  • User Deprecated: Method Doctrine\Common\Cache\Cache::contains() might add bool as a native return type declaration in the future. Do the same in implementation Aws\DoctrineCacheAdapter now to avoid errors or add an explicit @return annotation to suppress this message.
  • User Deprecated: Method Doctrine\Common\Cache\Cache::getStats() might add ?array as a native return type declaration in the future. Do the same in implementation Aws\DoctrineCacheAdapter now to avoid errors or add an explicit @return annotation to suppress this message.

This is similar to what was done here:

This fixes the following deprecations produced by Symfony:
* User Deprecated: Method "Doctrine\Common\Cache\Cache::fetch()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Aws\DoctrineCacheAdapter" now to avoid errors or add an explicit @return annotation to suppress this message.
* User Deprecated: Method "Doctrine\Common\Cache\Cache::save()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Aws\DoctrineCacheAdapter" now to avoid errors or add an explicit @return annotation to suppress this message.
* User Deprecated: Method "Doctrine\Common\Cache\Cache::delete()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Aws\DoctrineCacheAdapter" now to avoid errors or add an explicit @return annotation to suppress this message.
* User Deprecated: Method "Doctrine\Common\Cache\Cache::contains()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Aws\DoctrineCacheAdapter" now to avoid errors or add an explicit @return annotation to suppress this message.
* User Deprecated: Method "Doctrine\Common\Cache\Cache::getStats()" might add "?array" as a native return type declaration in the future. Do the same in implementation "Aws\DoctrineCacheAdapter" now to avoid errors or add an explicit @return annotation to suppress this message.
@stobrien89 stobrien89 closed this Aug 14, 2024
@stobrien89 stobrien89 reopened this Aug 14, 2024
@yenfryherrerafeliz yenfryherrerafeliz merged commit d0e5f0d into aws:master Aug 14, 2024
19 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.

None yet

3 participants