Skip to content

Code sample fixes#2014

Merged
TomasVotruba merged 3 commits intorectorphp:masterfrom
HypeMC:code-sample-fixes
Sep 22, 2019
Merged

Code sample fixes#2014
TomasVotruba merged 3 commits intorectorphp:masterfrom
HypeMC:code-sample-fixes

Conversation

@HypeMC
Copy link
Copy Markdown
Contributor

@HypeMC HypeMC commented Sep 21, 2019

Noticed some typos in certain code samples so I fixed them. I also updated the docs.

),
new CodeSample(
'$this->assertObjectHasAttribute("foo", $anything);',
'$this->assertFalse(isset($anything["foo"]), "message");',
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.

Why this change? Rule should end up with objectHasAttribute in the end

Copy link
Copy Markdown
Contributor Author

@HypeMC HypeMC Sep 22, 2019

Choose a reason for hiding this comment

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

@TomasVotruba The first CodeSample had two before codes, while the second two after codes, when it should be one before and one after per CodeSample:

image

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.

Ah, I see, I didn't notice it's 2 code samples when reading on mobile phone. All right then 👍

@TomasVotruba TomasVotruba merged commit 07a0e5d into rectorphp:master Sep 22, 2019
@TomasVotruba
Copy link
Copy Markdown
Member

Thank you 👍

TomasVotruba added a commit that referenced this pull request Apr 15, 2022
rectorphp/rector-src@91b8573 [PHPStan] Set compatible with upcoming PHPStan 1.6.x with set NodeConnectingVisitor tags (#2014)
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