Skip to content

Commit dbdafb1

Browse files
committed
[Rector] Apply StringifyStrNeedlesRector
1 parent 36a41fd commit dbdafb1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
use Rector\EarlyReturn\Rector\Return_\PreparedValueToEarlyReturnRector;
3232
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
3333
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
34-
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
3534
use Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\AnnotationWithValueToAttributeRector;
3635
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
3736
use Rector\PHPUnit\Set\PHPUnitSetList;
@@ -82,7 +81,6 @@
8281
__DIR__ . '/src/Views',
8382

8483
JsonThrowOnErrorRector::class,
85-
StringifyStrNeedlesRector::class,
8684
YieldDataProviderRector::class,
8785

8886
// Note: requires php 8

src/Authentication/Passwords/NothingPersonalValidator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ protected function isNotSimilar(string $password, ?User $user): bool
183183
*
184184
* Replaces all non-word characters and underscores in $str with a space.
185185
* Then it explodes that result using the space for a delimiter.
186+
*
187+
* @return array<int, string>
186188
*/
187189
protected function strip_explode(string $str): array
188190
{

0 commit comments

Comments
 (0)