Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Php81] Skip Encapsed on NullToStrictStringFuncCallArgRector#2744

Merged
TomasVotruba merged 2 commits into
mainfrom
patch-1
Aug 9, 2022
Merged

[Php81] Skip Encapsed on NullToStrictStringFuncCallArgRector#2744
TomasVotruba merged 2 commits into
mainfrom
patch-1

Conversation

@samsonasik

Copy link
Copy Markdown
Member

Closes #2742

@samsonasik

Copy link
Copy Markdown
Member Author

@TomasVotruba CI error is possibly related to new phpstan-rules update:

There were 167 errors:

1) Rector\Doctrine\Tests\Rector\ClassMethod\MakeEntitySetterNullabilityInSyncWithPropertyRector\MakeEntitySetterNullabilityInSyncWithPropertyRectorTest::test with data set #0 (Symplify\SmartFileSystem\SmartFileInfo Object (...))
_PHPStan_9a6ded56a\Nette\DI\ServiceCreationException: Service (Symplify\PHPStanRules\Rules\RequireStringArgumentInConstructorRule::__construct()): Class 'Symplify\PHPStanRules\Rules\RequireStringArgumentInConstructorRule' not found.

it still error even require "rector/phpstan-rules": "dev-main"

@samsonasik samsonasik closed this Aug 9, 2022
@samsonasik samsonasik reopened this Aug 9, 2022
@samsonasik

Copy link
Copy Markdown
Member Author

Close-Reopen to restart build

@samsonasik

Copy link
Copy Markdown
Member Author

rebased.

lyrixx and others added 2 commits August 10, 2022 03:38
# Failing Test for NullToStrictStringFuncCallArgRector

Based on https://getrector.org/demo/b778fb29-98e6-4992-b4fa-b14a0be26429

In this case, the first argument of the mb_strlen function cannot be something else than a string, so the cast to string is useless
@samsonasik

Copy link
Copy Markdown
Member Author

rebased.

@TomasVotruba

Copy link
Copy Markdown
Member

Thank you 👍

@TomasVotruba TomasVotruba merged commit d7be258 into main Aug 9, 2022
@TomasVotruba TomasVotruba deleted the patch-1 branch August 9, 2022 20:42
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