Skip to content

[TypeDeclaration] Add StrictStringParamConcatRector#4624

Merged
TomasVotruba merged 2 commits intomainfrom
tv-concat-string-type
Jul 31, 2023
Merged

[TypeDeclaration] Add StrictStringParamConcatRector#4624
TomasVotruba merged 2 commits intomainfrom
tv-concat-string-type

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

No description provided.

$paramName,
&$isParamConcatted,
): int|null {
if ($node instanceof Concat) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we need a separate case for Encapsed nodes

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Could you share a test fixture of what you mean?

Comment thread rules/TypeDeclaration/Rector/ClassMethod/StrictStringParamConcatRector.php Outdated
@TomasVotruba TomasVotruba force-pushed the tv-concat-string-type branch 6 times, most recently from 08c5e9a to 0527974 Compare July 31, 2023 00:25
@TomasVotruba TomasVotruba force-pushed the tv-concat-string-type branch from 0527974 to 0cdda18 Compare July 31, 2023 00:25
@TomasVotruba TomasVotruba enabled auto-merge (squash) July 31, 2023 00:25
@samsonasik
Copy link
Copy Markdown
Member

samsonasik commented Jul 31, 2023

Comment thread rules/TypeDeclaration/Rector/ClassMethod/StrictStringParamConcatRector.php Outdated
Comment thread rules/TypeDeclaration/Rector/ClassMethod/StrictStringParamConcatRector.php Outdated
@TomasVotruba TomasVotruba force-pushed the tv-concat-string-type branch 2 times, most recently from 01fde8f to f35f0a7 Compare July 31, 2023 11:03
@TomasVotruba TomasVotruba force-pushed the tv-concat-string-type branch from f35f0a7 to f58c785 Compare July 31, 2023 11:05
@TomasVotruba TomasVotruba merged commit 00edfa7 into main Jul 31, 2023
@TomasVotruba TomasVotruba deleted the tv-concat-string-type branch July 31, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants