File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 10
10
* file that was distributed with this source code.
11
11
*/
12
12
13
+ if ('cli ' !== \PHP_SAPI ) {
14
+ throw new Exception ('This script must be run from the command line. ' );
15
+ }
16
+
13
17
// Run from the root of the php-src repository, this script generates
14
18
// a table with all the methods that have a tentative return type.
15
19
//
Original file line number Diff line number Diff line change 10
10
* file that was distributed with this source code.
11
11
*/
12
12
13
+ if ('cli ' !== \PHP_SAPI ) {
14
+ throw new Exception ('This script must be run from the command line. ' );
15
+ }
16
+
13
17
if (\in_array ('-h ' , $ argv ) || \in_array ('--help ' , $ argv )) {
14
18
echo implode (PHP_EOL , [
15
19
' Patches type declarations based on "@return" PHPDoc and triggers deprecations for ' ,
You can’t perform that action at this time.
0 commit comments