Skip to content

Commit d3dd4c0

Browse files
authored
Update references to core + remove unused Symfony patches (rectorphp#4)
* update patch reference to new namespace without Core * remove unused symfony patches, we use laravel now
1 parent 71ce09e commit d3dd4c0

17 files changed

+51
-161
lines changed

patches/nikic-php-parser-lib-phpparser-node-expr-closure-php.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
use PhpParser\Node;
55
use PhpParser\Node\Expr;
66
use PhpParser\Node\FunctionLike;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class Closure extends Expr implements FunctionLike
1010
+class Closure extends Expr implements FunctionLike, StmtsAwareInterface
1111
{

patches/nikic-php-parser-lib-phpparser-node-stmt-case-php.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
+++ ../lib/PhpParser/Node/Stmt/Case_.php
33
@@ -3,8 +3,9 @@
44
namespace PhpParser\Node\Stmt;
5-
5+
66
use PhpParser\Node;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class Case_ extends Node\Stmt
1010
+class Case_ extends Node\Stmt implements StmtsAwareInterface
1111
{
@@ -15,7 +15,7 @@
1515
public function getSubNodeNames() : array {
1616
return ['cond', 'stmts'];
1717
}
18-
-
18+
-
1919
+
2020
public function getType() : string {
2121
return 'Stmt_Case';

patches/nikic-php-parser-lib-phpparser-node-stmt-catch-php.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/Catch_.php
33
@@ -4,8 +4,9 @@
4-
4+
55
use PhpParser\Node;
66
use PhpParser\Node\Expr;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class Catch_ extends Node\Stmt
1010
+class Catch_ extends Node\Stmt implements StmtsAwareInterface
1111
{

patches/nikic-php-parser-lib-phpparser-node-stmt-classmethod-php.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/ClassMethod.php
33
@@ -4,8 +4,9 @@
4-
4+
55
use PhpParser\Node;
66
use PhpParser\Node\FunctionLike;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class ClassMethod extends Node\Stmt implements FunctionLike
1010
+class ClassMethod extends Node\Stmt implements FunctionLike, StmtsAwareInterface
1111
{

patches/nikic-php-parser-lib-phpparser-node-stmt-do-php.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
+++ ../lib/PhpParser/Node/Stmt/Do_.php
33
@@ -3,8 +3,9 @@
44
namespace PhpParser\Node\Stmt;
5-
5+
66
use PhpParser\Node;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class Do_ extends Node\Stmt
1010
+class Do_ extends Node\Stmt implements StmtsAwareInterface
1111
{
@@ -15,7 +15,7 @@
1515
public function getSubNodeNames() : array {
1616
return ['stmts', 'cond'];
1717
}
18-
-
18+
-
1919
+
2020
public function getType() : string {
2121
return 'Stmt_Do';

patches/nikic-php-parser-lib-phpparser-node-stmt-else-php.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
+++ ../lib/PhpParser/Node/Stmt/Else_.php
33
@@ -3,8 +3,9 @@
44
namespace PhpParser\Node\Stmt;
5-
5+
66
use PhpParser\Node;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class Else_ extends Node\Stmt
1010
+class Else_ extends Node\Stmt implements StmtsAwareInterface
1111
{
@@ -15,7 +15,7 @@
1515
public function getSubNodeNames() : array {
1616
return ['stmts'];
1717
}
18-
-
18+
-
1919
+
2020
public function getType() : string {
2121
return 'Stmt_Else';

patches/nikic-php-parser-lib-phpparser-node-stmt-elseif-php.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
+++ ../lib/PhpParser/Node/Stmt/ElseIf_.php
33
@@ -3,8 +3,9 @@
44
namespace PhpParser\Node\Stmt;
5-
5+
66
use PhpParser\Node;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class ElseIf_ extends Node\Stmt
1010
+class ElseIf_ extends Node\Stmt implements StmtsAwareInterface
1111
{
@@ -15,7 +15,7 @@
1515
public function getSubNodeNames() : array {
1616
return ['cond', 'stmts'];
1717
}
18-
-
18+
-
1919
+
2020
public function getType() : string {
2121
return 'Stmt_ElseIf';

patches/nikic-php-parser-lib-phpparser-node-stmt-finally-php.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
+++ ../lib/PhpParser/Node/Stmt/Finally_.php
33
@@ -3,8 +3,9 @@
44
namespace PhpParser\Node\Stmt;
5-
5+
66
use PhpParser\Node;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class Finally_ extends Node\Stmt
1010
+class Finally_ extends Node\Stmt implements StmtsAwareInterface
1111
{
@@ -15,7 +15,7 @@
1515
public function getSubNodeNames() : array {
1616
return ['stmts'];
1717
}
18-
-
18+
-
1919
+
2020
public function getType() : string {
2121
return 'Stmt_Finally';

patches/nikic-php-parser-lib-phpparser-node-stmt-for-php.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
+++ ../lib/PhpParser/Node/Stmt/For_.php
33
@@ -3,8 +3,9 @@
44
namespace PhpParser\Node\Stmt;
5-
5+
66
use PhpParser\Node;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class For_ extends Node\Stmt
1010
+class For_ extends Node\Stmt implements StmtsAwareInterface
1111
{
@@ -15,7 +15,7 @@
1515
public function getSubNodeNames() : array {
1616
return ['init', 'cond', 'loop', 'stmts'];
1717
}
18-
-
18+
-
1919
+
2020
public function getType() : string {
2121
return 'Stmt_For';

patches/nikic-php-parser-lib-phpparser-node-stmt-foreach-php.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
+++ ../lib/PhpParser/Node/Stmt/Foreach_.php
33
@@ -3,8 +3,9 @@
44
namespace PhpParser\Node\Stmt;
5-
5+
66
use PhpParser\Node;
7-
+use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
8-
7+
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8+
99
-class Foreach_ extends Node\Stmt
1010
+class Foreach_ extends Node\Stmt implements StmtsAwareInterface
1111
{
@@ -15,7 +15,7 @@
1515
public function getSubNodeNames() : array {
1616
return ['expr', 'keyVar', 'byRef', 'valueVar', 'stmts'];
1717
}
18-
-
18+
-
1919
+
2020
public function getType() : string {
2121
return 'Stmt_Foreach';

0 commit comments

Comments
 (0)