Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:6.0frommalteschlueter:6.0-property-access-deprecated
May 27, 2021
Merged

[PropertyAccess] Remove deprecated code#41365

nicolas-grekas merged 1 commit intosymfony:6.0frommalteschlueter:6.0-property-access-deprecated
May 27, 2021

Conversation

@malteschlueter
Copy link
Contributor

QA
Branch?6.0
Bug fix?no
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

This remove deprecated code from PropertyAccess.

@carsonbot
Copy link

Hey!

I think@HeahDude has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

*/
publicfunctiontestGetValueReturnsNullIfPropertyNotFoundAndExceptionIsDisabledUsingBooleanArgument($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).');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please also removeExpectDeprecationTrait from this test:

useSymfony\Bridge\PhpUnit\ExpectDeprecationTrait;

see#41298 (comment)

malteschlueter reacted with thumbs up emoji
publicfunction__construct(int$magicMethods =self::MAGIC_GET |self::MAGIC_SET,int$throw =self::THROW_ON_INVALID_PROPERTY_PATH,CacheItemPoolInterface$cacheItemPool =null,PropertyReadInfoExtractorInterface$readInfoExtractor =null,PropertyWriteInfoExtractorInterface$writeInfoExtractor =null)
{
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__);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

You can removesymfony/deprecation-contracts from the composer.json file. See#41298 (comment)

malteschlueter reacted with thumbs up emoji
@jschaedl
Copy link
Contributor

Shall we update the component's CHANGELOG file accordingly?

@nicolas-grekas
Copy link
Member

Shall we update the component's CHANGELOG file accordingly?

yes please, please also rebase and take review comments into account of course

jschaedl, derrabus, and malteschlueter reacted with thumbs up emoji

@nicolas-grekas
Copy link
Member

Please rebase to restart tests 🙏

@nicolas-grekas
Copy link
Member

Thank you@malteschlueter.

malteschlueter reacted with thumbs up emoji

@nicolas-grekasnicolas-grekas merged commita6ed11e intosymfony:6.0May 27, 2021
@fabpotfabpot mentioned this pull requestNov 5, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@jschaedljschaedljschaedl left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.0

Development

Successfully merging this pull request may close these issues.

4 participants

@malteschlueter@carsonbot@jschaedl@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp