-
Notifications
You must be signed in to change notification settings - Fork 20
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
Added native return types #44
base: main
Are you sure you want to change the base?
Conversation
{ | ||
return $this->has($key); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
* | ||
* @return mixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because mixed
was added after PHP 7.1, it cannot be used as native return type yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no problem with these changes, but they do technically break BC (since this class is not final
) and would therefore require a major version bump.
I could remove the native return types and just add |
@colinodell what do you propose? |
Hello! The issue is still actual. Annoying notices after phpunit tests. @simensen @colinodell what about @pkruithof proposal to add
|
@pkruithof @colinodell @simensen Can we kindly do something about these noisy messages in everybodies PHP 8.1 Unit Tests :D I have created a quick "sister" PR: #45 . This should patch this issue, hopefully without a BC issue. |
#45 has been merged and released: https://github.com/dflydev/dflydev-dot-access-data/releases/tag/v3.0.2 |
Cool, let me know when you are ready to merge this one, because I suspect I can change the |
The
ArrayAccess
methods have native return types since PHP 7, which can result in deprecation messages like this (when using Symfony's debug classloader):This PR adds native return types where possible.