Skip to content

Commit 37d436f

Browse files
committed
update patches
1 parent c188ae7 commit 37d436f

8 files changed

+48
-64
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/Case_.php
3-
@@ -3,8 +3,9 @@
4-
namespace PhpParser\Node\Stmt;
5-
3+
@@ -4,7 +4,7 @@
4+
65
use PhpParser\Node;
7-
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8-
6+
97
-class Case_ extends Node\Stmt
10-
+class Case_ extends Node\Stmt implements StmtsAwareInterface
8+
+class Case_ extends Node\Stmt implements \Rector\Contract\PhpParser\Node\StmtsAwareInterface
119
{
1210
/** @var null|Node\Expr Condition (null for default) */
1311
public $cond;
14-
@@ -27,7 +28,7 @@
12+
@@ -27,7 +27,7 @@
1513
public function getSubNodeNames() : array {
1614
return ['cond', 'stmts'];
1715
}
18-
-
16+
-
1917
+
2018
public function getType() : string {
2119
return 'Stmt_Case';

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/Do_.php
3-
@@ -3,8 +3,9 @@
4-
namespace PhpParser\Node\Stmt;
5-
3+
@@ -4,7 +4,7 @@
4+
65
use PhpParser\Node;
7-
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8-
6+
97
-class Do_ extends Node\Stmt
10-
+class Do_ extends Node\Stmt implements StmtsAwareInterface
8+
+class Do_ extends Node\Stmt implements \Rector\Contract\PhpParser\Node\StmtsAwareInterface
119
{
1210
/** @var Node\Stmt[] Statements */
1311
public $stmts;
14-
@@ -27,7 +28,7 @@
12+
@@ -27,7 +27,7 @@
1513
public function getSubNodeNames() : array {
1614
return ['stmts', 'cond'];
1715
}
18-
-
16+
-
1917
+
2018
public function getType() : string {
2119
return 'Stmt_Do';

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/Else_.php
3-
@@ -3,8 +3,9 @@
4-
namespace PhpParser\Node\Stmt;
5-
3+
@@ -4,7 +4,7 @@
4+
65
use PhpParser\Node;
7-
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8-
6+
97
-class Else_ extends Node\Stmt
10-
+class Else_ extends Node\Stmt implements StmtsAwareInterface
8+
+class Else_ extends Node\Stmt implements \Rector\Contract\PhpParser\Node\StmtsAwareInterface
119
{
1210
/** @var Node\Stmt[] Statements */
1311
public $stmts;
14-
@@ -23,7 +24,7 @@
12+
@@ -23,7 +23,7 @@
1513
public function getSubNodeNames() : array {
1614
return ['stmts'];
1715
}
18-
-
16+
-
1917
+
2018
public function getType() : string {
2119
return 'Stmt_Else';

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/ElseIf_.php
3-
@@ -3,8 +3,9 @@
4-
namespace PhpParser\Node\Stmt;
5-
3+
@@ -4,7 +4,7 @@
4+
65
use PhpParser\Node;
7-
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8-
6+
97
-class ElseIf_ extends Node\Stmt
10-
+class ElseIf_ extends Node\Stmt implements StmtsAwareInterface
8+
+class ElseIf_ extends Node\Stmt implements \Rector\Contract\PhpParser\Node\StmtsAwareInterface
119
{
1210
/** @var Node\Expr Condition */
1311
public $cond;
14-
@@ -27,7 +28,7 @@
12+
@@ -27,7 +27,7 @@
1513
public function getSubNodeNames() : array {
1614
return ['cond', 'stmts'];
1715
}
18-
-
16+
-
1917
+
2018
public function getType() : string {
2119
return 'Stmt_ElseIf';

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/For_.php
3-
@@ -3,8 +3,9 @@
4-
namespace PhpParser\Node\Stmt;
5-
3+
@@ -4,7 +4,7 @@
4+
65
use PhpParser\Node;
7-
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8-
6+
97
-class For_ extends Node\Stmt
10-
+class For_ extends Node\Stmt implements StmtsAwareInterface
8+
+class For_ extends Node\Stmt implements \Rector\Contract\PhpParser\Node\StmtsAwareInterface
119
{
1210
/** @var Node\Expr[] Init expressions */
1311
public $init;
14-
@@ -36,7 +37,7 @@
12+
@@ -36,7 +36,7 @@
1513
public function getSubNodeNames() : array {
1614
return ['init', 'cond', 'loop', 'stmts'];
1715
}
18-
-
16+
-
1917
+
2018
public function getType() : string {
2119
return 'Stmt_For';

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/Foreach_.php
3-
@@ -3,8 +3,9 @@
4-
namespace PhpParser\Node\Stmt;
5-
3+
@@ -4,7 +4,7 @@
4+
65
use PhpParser\Node;
7-
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8-
6+
97
-class Foreach_ extends Node\Stmt
10-
+class Foreach_ extends Node\Stmt implements StmtsAwareInterface
8+
+class Foreach_ extends Node\Stmt implements \Rector\Contract\PhpParser\Node\StmtsAwareInterface
119
{
1210
/** @var Node\Expr Expression to iterate */
1311
public $expr;
14-
@@ -40,7 +41,7 @@
12+
@@ -40,7 +40,7 @@
1513
public function getSubNodeNames() : array {
1614
return ['expr', 'keyVar', 'byRef', 'valueVar', 'stmts'];
1715
}
18-
-
16+
-
1917
+
2018
public function getType() : string {
2119
return 'Stmt_Foreach';

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/If_.php
3-
@@ -3,8 +3,9 @@
4-
namespace PhpParser\Node\Stmt;
5-
3+
@@ -4,7 +4,7 @@
4+
65
use PhpParser\Node;
7-
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8-
6+
97
-class If_ extends Node\Stmt
10-
+class If_ extends Node\Stmt implements StmtsAwareInterface
8+
+class If_ extends Node\Stmt implements \Rector\Contract\PhpParser\Node\StmtsAwareInterface
119
{
1210
/** @var Node\Expr Condition expression */
1311
public $cond;
14-
@@ -36,7 +37,7 @@
12+
@@ -36,7 +36,7 @@
1513
public function getSubNodeNames() : array {
1614
return ['cond', 'stmts', 'elseifs', 'else'];
1715
}
18-
-
16+
-
1917
+
2018
public function getType() : string {
2119
return 'Stmt_If';

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
--- /dev/null
22
+++ ../lib/PhpParser/Node/Stmt/While_.php
3-
@@ -3,8 +3,9 @@
4-
namespace PhpParser\Node\Stmt;
5-
3+
@@ -4,7 +4,7 @@
4+
65
use PhpParser\Node;
7-
+use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
8-
6+
97
-class While_ extends Node\Stmt
10-
+class While_ extends Node\Stmt implements StmtsAwareInterface
8+
+class While_ extends Node\Stmt implements \Rector\Contract\PhpParser\Node\StmtsAwareInterface
119
{
1210
/** @var Node\Expr Condition */
1311
public $cond;
14-
@@ -27,7 +28,7 @@
12+
@@ -27,7 +27,7 @@
1513
public function getSubNodeNames() : array {
1614
return ['cond', 'stmts'];
1715
}
18-
-
16+
-
1917
+
2018
public function getType() : string {
2119
return 'Stmt_While';

0 commit comments

Comments
 (0)