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

[PhpUnitBridge] Fix cleaning up mocked features with attributes#60500

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

Conversation

HypeMC
Copy link
Member

QA
Branch?7.3
Bug fix?yes
New feature?no
Deprecations?no
Issues-
LicenseMIT

Fixes usage of the attributes introduced in#59384 to reflect changes made in#60484.

@@ -50,35 +52,51 @@ public function bootstrap(Configuration $configuration, Facade $facade, Paramete

$facade->registerSubscriber(new RegisterClockMockSubscriber($reader));
$facade->registerSubscriber(new EnableClockMockSubscriber($reader));
$facade->registerSubscriber(new class implements ErroredSubscriber {
$facade->registerSubscriber(new class($reader) implements ErroredSubscriber {
public function __construct(private AttributeReader $reader)
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The reason I wanted to use the same instance of the reader was to leverage its internal cache. Perhaps moving thedisableClockMock,disableDnsMock, andhasGroup methods to an abstract subscriber class would be better?

@xabbuh
Copy link
Member

looking at the CI failure we should probably also exclude theSymfonyExtension class from the PHP 7.2 linter (it requires PHPUnit 10+ which in turn requires PHP 8.1+)

@HypeMCHypeMCforce-pushed thefix-symfonyextension-with-attributes branch from990d750 to62da782CompareMay 23, 2025 07:26
@HypeMC
Copy link
MemberAuthor

@xabbuh Don't know why I didn't do that from the start:https://github.com/symfony/symfony/compare/990d750552cd0e84af2d55076805a35ac99ea615..62da782fd3941e75bf150a52eebb6935623ad814

xabbuh reacted with thumbs up emoji

@fabpot
Copy link
Member

Thank you@HypeMC.

@fabpotfabpot merged commitf3247fd intosymfony:7.3May 24, 2025
10 of 12 checks passed
@HypeMCHypeMC deleted the fix-symfonyextension-with-attributes branchMay 24, 2025 14:09
@fabpotfabpot mentioned this pull requestMay 25, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@xabbuhxabbuhxabbuh approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

4 participants
@HypeMC@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp