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

[PropertyInfo] Skip extractors that do not implementgetType#57363

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

Closed
llupa wants to merge1 commit intosymfony:7.1fromllupa:property-info-extractor
Closed

[PropertyInfo] Skip extractors that do not implementgetType#57363

llupa wants to merge1 commit intosymfony:7.1fromllupa:property-info-extractor

Conversation

llupa
Copy link
Contributor

QA
Branch?7.1
Bug fix?yes
New feature?no
Deprecations?yes
IssuesFix#57360
LicenseMIT

@llupa
Copy link
ContributorAuthor

I did not put any update on.md files because I will wait for a feedback from the team first. Thanks! 👍

if (!method_exists($extractor, $method)) {
trigger_deprecation('symfony/property-info', '7.1', 'Not implementing the "%s()" method in class "%s" is deprecated."', $method, $extractor::class);

continue;
Copy link
Member

Choose a reason for hiding this comment

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

This does not look like the right solution to me as it means that a formerly used extractor will now no longer be used leading to a (potentially) different result.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I completely agree. I tried to put a messagesomewhere several times, but I was undecided and thought to have the PR rolling to have more feedback / ideas.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Also, I thought about strictly checking forgetType and have it default togetTypes and it would work for return values that have only 1 Type in the return array ofgetTypes. I think this change was done before:#54694. Most of the code in property-info thinks BIGINT is string and not this dual type scenario.

Copy link
Member

@xabbuhxabbuhJun 19, 2024
edited
Loading

Choose a reason for hiding this comment

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

see#57459 for another attempt

@nicolas-grekas
Copy link
Member

Closing in favor of#57459
Thanks for submitting.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@xabbuhxabbuhxabbuh left review comments

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
7.1
Development

Successfully merging this pull request may close these issues.

4 participants
@llupa@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp