Skip to content

Commit 99a32e2

Browse files
committed
Updated Rector to commit d1e896cd58204f76a1dea43a86e8f119a8c71c9c
rectorphp/rector-src@d1e896c [automated] Apply Coding Standard (#6784)
1 parent 09be5b2 commit 99a32e2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

rules/Php84/Rector/FuncCall/AddEscapeArgumentRector.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
declare (strict_types=1);
44
namespace Rector\Php84\Rector\FuncCall;
55

6-
use PHPStan\Type\ObjectType;
76
use PhpParser\Node;
87
use PhpParser\Node\Arg;
98
use PhpParser\Node\Expr\FuncCall;
109
use PhpParser\Node\Expr\MethodCall;
1110
use PhpParser\Node\Identifier;
1211
use PhpParser\Node\Scalar\String_;
12+
use PHPStan\Type\ObjectType;
1313
use Rector\Rector\AbstractRector;
1414
use Rector\ValueObject\PhpVersionFeature;
1515
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
@@ -57,7 +57,7 @@ public function refactor(Node $node)
5757
if ($name === 'str_getcsv' && isset($node->getArgs()[3])) {
5858
return null;
5959
}
60-
$node->args[\count($node->getArgs())] = new Arg(new String_("\\"), \false, \false, [], new Identifier('escape'));
60+
$node->args[\count($node->getArgs())] = new Arg(new String_('\\'), \false, \false, [], new Identifier('escape'));
6161
return $node;
6262
}
6363
if (!$this->isObjectType($node->var, new ObjectType('SplFileObject'))) {
@@ -76,9 +76,13 @@ public function refactor(Node $node)
7676
if ($name === 'fputcsv' && isset($node->getArgs()[3])) {
7777
return null;
7878
}
79-
$node->args[\count($node->getArgs())] = new Arg(new String_("\\"), \false, \false, [], new Identifier('escape'));
79+
$node->args[\count($node->getArgs())] = new Arg(new String_('\\'), \false, \false, [], new Identifier('escape'));
8080
return $node;
8181
}
82+
public function provideMinPhpVersion() : int
83+
{
84+
return PhpVersionFeature::REQUIRED_ESCAPE_PARAMETER;
85+
}
8286
/**
8387
* @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall $node
8488
*/
@@ -92,8 +96,4 @@ private function shouldSkipNamedArg($node) : bool
9296
}
9397
return \false;
9498
}
95-
public function provideMinPhpVersion() : int
96-
{
97-
return PhpVersionFeature::REQUIRED_ESCAPE_PARAMETER;
98-
}
9999
}

src/Application/VersionResolver.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = 'b96adc590b9939e14a2abfdda3dd05f5bb1824e1';
22+
public const PACKAGE_VERSION = 'd1e896cd58204f76a1dea43a86e8f119a8c71c9c';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-03-15 12:24:23';
27+
public const RELEASE_DATE = '2025-03-16 00:36:29';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)