1Closure add static
2-----
3<?php
4function () {
5 if (rand(0, 1)) {
6 return true;
7 }
8
9 return false;
10};
11-----
12$stmts[0]->expr->static = true;
13-----
14<?php
15static function () {
16 if (rand(0, 1)) {
17 return true;
18 }
19
20 return false;
21};