Skip to content
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

DX: replace fixture classes with anonymous ones #7533

Merged
merged 8 commits into from Dec 11, 2023
Merged

DX: replace fixture classes with anonymous ones #7533

merged 8 commits into from Dec 11, 2023

Conversation

kubawerlos
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Dec 8, 2023

Coverage Status

coverage: 94.908%. remained the same
when pulling bc6cc16 on 6b7562617765726c6f73:dx_AbstractProxyFixerTest
into f181d2b on PHP-CS-Fixer:master.

@keradus
Copy link
Member

keradus commented Dec 8, 2023

can you gather all of those in one PR?
for me it's same feature "drop prophecy", "drop dummy implementations in fixtures" etc :D no need to have one PR per class, you can have one commit per class and single PR :D

@kubawerlos kubawerlos marked this pull request as draft December 9, 2023 06:57
@kubawerlos kubawerlos changed the title DX: AbstractProxyFixerTest - use anonymous classes DX: replace fixture classes with anonymous ones Dec 9, 2023
@kubawerlos kubawerlos marked this pull request as ready for review December 9, 2023 07:22
@kubawerlos kubawerlos enabled auto-merge (squash) December 9, 2023 09:27
Comment on lines +83 to +85
private function createStdinStreamDouble(): object
{
return new class() {
Copy link
Member

Choose a reason for hiding this comment

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

I know it was not there initially, but can we somehow add any typehint here other than object ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@keradus keradus left a comment

Choose a reason for hiding this comment

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

overall, 👍🏻

I left few small comments and disabled automerge, feel free to decide to incorporate them or not and merge afterwards

kubawerlos and others added 2 commits December 11, 2023 22:06
@kubawerlos kubawerlos enabled auto-merge (squash) December 11, 2023 21:06
@kubawerlos kubawerlos merged commit 1a4cce9 into PHP-CS-Fixer:master Dec 11, 2023
25 checks passed
@kubawerlos kubawerlos deleted the dx_AbstractProxyFixerTest branch December 11, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants