updated php-cli dependency

fixes a PHP 7.4 incompability
This commit is contained in:
Andreas Gohr 2020-07-01 09:40:56 +02:00
parent 0c5897cdc0
commit 64604f4ea8
3 changed files with 13 additions and 13 deletions

10
composer.lock generated
View File

@ -468,16 +468,16 @@
},
{
"name": "splitbrain/php-cli",
"version": "1.1.6",
"version": "1.1.7",
"source": {
"type": "git",
"url": "https://github.com/splitbrain/php-cli.git",
"reference": "b7be3726872547253dd0bd61098fa9f634c33555"
"reference": "fb4f888866d090b10e3e68292d197ca274cea626"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/splitbrain/php-cli/zipball/b7be3726872547253dd0bd61098fa9f634c33555",
"reference": "b7be3726872547253dd0bd61098fa9f634c33555",
"url": "https://api.github.com/repos/splitbrain/php-cli/zipball/fb4f888866d090b10e3e68292d197ca274cea626",
"reference": "fb4f888866d090b10e3e68292d197ca274cea626",
"shasum": ""
},
"require": {
@ -515,7 +515,7 @@
"optparse",
"terminal"
],
"time": "2019-10-16T07:31:14+00:00"
"time": "2019-12-12T08:24:54+00:00"
}
],
"packages-dev": [],

View File

@ -477,17 +477,17 @@
},
{
"name": "splitbrain/php-cli",
"version": "1.1.6",
"version_normalized": "1.1.6.0",
"version": "1.1.7",
"version_normalized": "1.1.7.0",
"source": {
"type": "git",
"url": "https://github.com/splitbrain/php-cli.git",
"reference": "b7be3726872547253dd0bd61098fa9f634c33555"
"reference": "fb4f888866d090b10e3e68292d197ca274cea626"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/splitbrain/php-cli/zipball/b7be3726872547253dd0bd61098fa9f634c33555",
"reference": "b7be3726872547253dd0bd61098fa9f634c33555",
"url": "https://api.github.com/repos/splitbrain/php-cli/zipball/fb4f888866d090b10e3e68292d197ca274cea626",
"reference": "fb4f888866d090b10e3e68292d197ca274cea626",
"shasum": ""
},
"require": {
@ -499,7 +499,7 @@
"suggest": {
"psr/log": "Allows you to make the CLI available as PSR-3 logger"
},
"time": "2019-10-16T07:31:14+00:00",
"time": "2019-12-12T08:24:54+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {

View File

@ -216,13 +216,13 @@ class Options
}
// first non-option
if ($arg{0} != '-') {
if ($arg[0] != '-') {
$non_opts = array_merge($non_opts, array_slice($this->args, $i));
break;
}
// long option
if (strlen($arg) > 1 && $arg{1} == '-') {
if (strlen($arg) > 1 && $arg[1] === '-') {
$arg = explode('=', substr($arg, 2), 2);
$opt = array_shift($arg);
$val = array_shift($arg);