Skip to content

Add fixture for regression test against ReadOnlyPropertyRector#4356

Closed
Jean85 wants to merge 1 commit intorectorphp:mainfrom
Jean85:patch-1
Closed

Add fixture for regression test against ReadOnlyPropertyRector#4356
Jean85 wants to merge 1 commit intorectorphp:mainfrom
Jean85:patch-1

Conversation

@Jean85
Copy link
Copy Markdown
Contributor

@Jean85 Jean85 commented Jun 27, 2023

This should be used to fix #8012

public static function create(\DateTimeInterface $date): self
{
$ack = new self();
$ack->ackedAt = $date;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should same property name to make fixture valid:

Suggested change
$ack->ackedAt = $date;
$ack->date = $date;

I will take care it ;)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Jean85 I cherry-picked your commit at PR #4359

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants