Update rector and the used class namespace

Seems like the class alias for Rector\Core is removed in 19.2 This
should fix the rector runs on github.
This commit is contained in:
Andreas Gohr 2024-01-25 10:45:55 +01:00
parent dd4993d183
commit 33b3315418
3 changed files with 8 additions and 9 deletions

12
_test/composer.lock generated
View File

@ -916,16 +916,16 @@
},
{
"name": "rector/rector",
"version": "0.19.0",
"version": "0.19.1",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/rector.git",
"reference": "503f4ead06b3892bd106f67f3c86d4e36c94423d"
"reference": "2bba0dd55ba92c23f1253d9e60d0242a896d1025"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/503f4ead06b3892bd106f67f3c86d4e36c94423d",
"reference": "503f4ead06b3892bd106f67f3c86d4e36c94423d",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/2bba0dd55ba92c23f1253d9e60d0242a896d1025",
"reference": "2bba0dd55ba92c23f1253d9e60d0242a896d1025",
"shasum": ""
},
"require": {
@ -960,7 +960,7 @@
],
"support": {
"issues": "https://github.com/rectorphp/rector/issues",
"source": "https://github.com/rectorphp/rector/tree/0.19.0"
"source": "https://github.com/rectorphp/rector/tree/0.19.1"
},
"funding": [
{
@ -968,7 +968,7 @@
"type": "github"
}
],
"time": "2024-01-09T00:49:06+00:00"
"time": "2024-01-15T18:02:43+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",

View File

@ -6,7 +6,7 @@ use PhpParser\Node;
use PhpParser\Node\Expr\FuncCall;
use PhpParser\Node\Stmt\Echo_;
use PhpParser\Node\Stmt\Expression;
use Rector\Core\Rector\AbstractRector;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

View File

@ -3,11 +3,10 @@
namespace dokuwiki\test\rector;
use PhpParser\Node;
use PhpParser\Node\Expr\FuncCall;
use PhpParser\Node\Expr\Print_;
use PhpParser\Node\Stmt\Echo_;
use PhpParser\Node\Stmt\Expression;
use Rector\Core\Rector\AbstractRector;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;