File tree Expand file tree Collapse file tree 4 files changed +52
-48
lines changed Expand file tree Collapse file tree 4 files changed +52
-48
lines changed Original file line number Diff line number Diff line change @@ -1327,10 +1327,10 @@ visitor API:
1327
1327
3 . Generic visitors that trigger upon entering and leaving any node.
1328
1328
1329
1329
Visitor::visit($ast, [
1330
- 'enter' => function ($node) {
1330
+ 'enter' => function (Node $node) {
1331
1331
// enter any node
1332
1332
},
1333
- 'leave' => function ($node) {
1333
+ 'leave' => function (Node $node) {
1334
1334
// leave any node
1335
1335
}
1336
1336
] );
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ parameters:
45
45
- message: "~it's missing from the PHPDoc @throws tag~"
46
46
path: benchmarks
47
47
48
+ # Simplifies tests
49
+ - message: "~Access to an undefined property GraphQL\\\\Language\\\\AST\\\\Node\\:\\:\\$.+~"
50
+ path: tests/Language/VisitorTest.php
51
+
48
52
includes:
49
53
- phpstan-baseline.neon
50
54
- phpstan/include-by-php-version.php
Original file line number Diff line number Diff line change 66
66
* 3. Generic visitors that trigger upon entering and leaving any node.
67
67
*
68
68
* Visitor::visit($ast, [
69
- * 'enter' => function ($node) {
69
+ * 'enter' => function (Node $node) {
70
70
* // enter any node
71
71
* },
72
- * 'leave' => function ($node) {
72
+ * 'leave' => function (Node $node) {
73
73
* // leave any node
74
74
* }
75
75
* ]);
You can’t perform that action at this time.
0 commit comments