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

[Intl] Fix the IntlDateFormatter::formatObject signature#46730

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
fabpot merged 1 commit intosymfony:4.4fromdamienalexandre:intlFormatObject
Jun 22, 2022

Conversation

damienalexandre
Copy link
Contributor

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsNone
LicenseMIT
Doc PR🕳️

I was callingIntlDateFormatter::formatObject in my user-land code and got this error from PHPStan:

Static call to instance method Symfony\Component\Intl\DateFormatter\IntlDateFormatter::formatObject().

The Intl componentformatObject method signature is indeed non-static, but the PHP Intl signature is.

Reference:https://www.php.net/manual/en/intldateformatter.formatobject.php

So I think the component should respect PHP method signature.

TSolutions3A reacted with thumbs up emoji
@stof
Copy link
Member

The same PR should be submitted tohttps://github.com/symfony/polyfill which is the new location of that code for Symfony 5+

damienalexandre reacted with thumbs up emoji

@fabpot
Copy link
Member

Thank you@damienalexandre.

@fabpotfabpot merged commitc299069 intosymfony:4.4Jun 22, 2022
This was referencedJun 26, 2022
stof added a commit to symfony/polyfill that referenced this pull requestSep 27, 2022
…mienalexandre)This PR was merged into the 1.26-dev branch.Discussion----------[Intl] Fix the IntlDateFormatter::formatObject signatureFollowing bug fix on Symfony Intl component, seesymfony/symfony#46730 for the full description.Commits-------6a35083 [Intl] Fix the IntlDateFormatter::formatObject signature
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@GromNaNGromNaNGromNaN approved these changes

@stofstofstof approved these changes

@OskarStarkOskarStarkOskarStark approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
4.4
Development

Successfully merging this pull request may close these issues.

6 participants
@damienalexandre@stof@fabpot@GromNaN@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp