Skip to content

Commit 36d2cf9

Browse files
committed
PHPStan fixes
1 parent 4c7f1d4 commit 36d2cf9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

utils/get-package-require-from-composer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
$file = $argv[1];
3+
$file = $GLOBALS['argv'][1];
44
if ( ! file_exists( $file ) ) {
55
echo 'File does not exist.';
66
exit( 1 );

utils/make-phar.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
list( $args, $assoc_args, $runtime_config ) = $configurator->parse_args( array_slice( $GLOBALS['argv'], 1 ) );
2828

2929
if ( ! isset( $args[0] ) || empty( $args[0] ) ) {
30-
fwrite( STDERR, "usage: php -dphar.readonly=0 $argv[0] <path> [--quiet] [--version=same|patch|minor|major|x.y.z] [--store-version] [--build=cli]" . PHP_EOL );
30+
$arg = $GLOBALS['argv'][0];
31+
fwrite( STDERR, "usage: php -dphar.readonly=0 $arg <path> [--quiet] [--version=same|patch|minor|major|x.y.z] [--store-version] [--build=cli]" . PHP_EOL );
3132
exit( 1 );
3233
}
3334

0 commit comments

Comments
 (0)