Skip to content

Commit

Permalink
Merge pull request etsy#19 from mjec/master
Browse files Browse the repository at this point in the history
Remove string assertions to avoid deprecation warning in php 7.3
  • Loading branch information
rlerdorf authored Apr 11, 2019
2 parents 6a360e0 + 955a5fe commit 9877f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Util/PHPOptions/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function _getopt_long_has_args($opt, $longopts) {
// No exact match, so better be unique.
if (count($possibilities) > 1)
throw new GetoptError("option --$opt not a unique prefix");
assert('count($possibilities) == 1');
assert(count($possibilities) == 1);
$unique_match = $possibilities[0];
$has_arg = _endswith($unique_match,'=');
if ($has_arg)
Expand Down Expand Up @@ -501,7 +501,7 @@ public function parse($args) {
else {
list($k, $invert) = $opt->_unalias($k);
if (! $this->_hasparms[$k]) {
assert('$v == ""');
assert($v == "");
$v = (array_key_exists($k,$opt->_opts) ? $opt->_opts[$k] : 0) + 1;
}
else
Expand Down

0 comments on commit 9877f87

Please sign in to comment.