-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PropertyAccess] Remove deprecated code #41365
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
[PropertyAccess] Remove deprecated code #41365
Conversation
Hey! I think @HeahDude has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
*/ | ||
public function testGetValueReturnsNullIfPropertyNotFoundAndExceptionIsDisabledUsingBooleanArgument($objectOrArray, $path) | ||
{ | ||
$this->expectDeprecation('Since symfony/property-access 5.3: Passing a boolean as the fourth argument to "Symfony\Component\PropertyAccess\PropertyAccessor::__construct()" is deprecated. Pass a combination of bitwise flags as the second argument instead (i.e an integer).'); |
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.
Please also remove ExpectDeprecationTrait
from this test:
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; |
see #41298 (comment)
{ | ||
if (\is_bool($magicMethods)) { | ||
trigger_deprecation('symfony/property-access', '5.2', 'Passing a boolean as the first argument to "%s()" is deprecated. Pass a combination of bitwise flags instead (i.e an integer).', __METHOD__); |
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.
You can remove symfony/deprecation-contracts
from the composer.json file. See #41298 (comment)
Shall we update the component's CHANGELOG file accordingly? |
yes please, please also rebase and take review comments into account of course |
Please rebase to restart tests 🙏 |
Thank you @malteschlueter. |
This remove deprecated code from PropertyAccess.