⬆️ N°3867 Upgrade php-parser from 3.1.5 to latest version 4.12.0

The 3.1.5 version wasn't maintained anymore and was compatible with PHP 7.2 maximum
This commit is contained in:
Pierre Goiffon
2021-08-09 14:58:06 +02:00
parent be1ef5b452
commit 9bbee0d603
248 changed files with 12185 additions and 11258 deletions

View File

@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
namespace PhpParser;
@@ -32,7 +32,7 @@ interface NodeVisitor
*
* @param Node $node Node
*
* @return null|int|Node Node
* @return null|int|Node Replacement node (or special return value)
*/
public function enterNode(Node $node);
@@ -53,7 +53,7 @@ interface NodeVisitor
*
* @param Node $node Node
*
* @return null|false|int|Node|Node[] Node
* @return null|int|Node|Node[] Replacement node (or special return value)
*/
public function leaveNode(Node $node);
@@ -69,4 +69,4 @@ interface NodeVisitor
* @return null|Node[] Array of nodes
*/
public function afterTraverse(array $nodes);
}
}