Fix integration tests

This commit is contained in:
Nicolas Grekas
2020-05-19 14:34:16 +02:00
parent 6a0ab744d2
commit 8b1f0c7f7e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@ env:
before_install:
- phpenv config-rm xdebug.ini || return 0
- echo memory_limit = -1 >> ~/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/travis.ini
install:
- travis_retry composer install
+1 -1
View File
@@ -254,7 +254,7 @@ abstract class CallExpression extends AbstractExpression
}
if ($isVariadic) {
$argument = end($parameters);
$isArray = $argument && $argument->getType() && 'array' === (\PHP_VERSION_ID >= 70100 ? $argument->getType()->getName() : (string) $argument->getType());
$isArray = $argument && $argument->hasType() && 'array' === $argument->getType()->getName();
if ($isArray && $argument->isDefaultValueAvailable() && [] === $argument->getDefaultValue()) {
array_pop($parameters);
} else {