Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi authored and github-actions[bot] committed May 16, 2024
1 parent acc909f commit 8b1cd04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions rules/TYPO310/v0/UseNativePhpHex2binMethodRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Ssch\TYPO3Rector\TYPO310\v0;

use TYPO3\CMS\Extbase\Utility\TypeHandlingUtility;
use PhpParser\Node;
use PhpParser\Node\Expr\StaticCall;
use PHPStan\Type\ObjectType;
Expand Down Expand Up @@ -47,10 +48,10 @@ public function refactor(Node $node): ?Node
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Turns TYPO3\CMS\Extbase\Utility\TypeHandlingUtility::hex2bin calls to native php hex2bin',
'Turns ' . TypeHandlingUtility::class . '::hex2bin calls to native php hex2bin',
[
new CodeSample(
'TYPO3\CMS\Extbase\Utility\TypeHandlingUtility::hex2bin("6578616d706c65206865782064617461");',
TypeHandlingUtility::class . '::hex2bin("6578616d706c65206865782064617461");',
'hex2bin("6578616d706c65206865782064617461");'
),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Ssch\TYPO3Rector\TYPO311\v0;

use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use PhpParser\Comment;
use PhpParser\Node;
use PhpParser\Node\Expr\MethodCall;
Expand Down Expand Up @@ -39,7 +40,7 @@ public function __construct(ValueResolver $valueResolver)
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Return TYPO3\CMS\Extbase\Http\ForwardResponse instead of TYPO3\CMS\Extbase\Mvc\Controller\ActionController::forward()',
'Return TYPO3\CMS\Extbase\Http\ForwardResponse instead of ' . ActionController::class . '::forward()',
[new CodeSample(
<<<'CODE_SAMPLE'
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
Expand Down

0 comments on commit 8b1cd04

Please sign in to comment.