Skip to content

Instantly share code, notes, and snippets.

@prondubuisi
Created May 27, 2021 17:06
Show Gist options
  • Save prondubuisi/76fe04a72c7f1b40d93b6f7cc956efda to your computer and use it in GitHub Desktop.
Save prondubuisi/76fe04a72c7f1b40d93b6f7cc956efda to your computer and use it in GitHub Desktop.
Build process completed successfully
Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20200930/grpc.so'
install ok: channel://pecl.php.net/grpc-1.38.0
configuration option "php_ini" is not set to php.ini location
You should add "extension=grpc.so" to php.ini
Removing intermediate container dd9c198c7b1c
---> 7def76b057b0
Step 4/4 : WORKDIR /usr/src/myapp
---> Running in 4de586be792f
Removing intermediate container 4de586be792f
---> 1ffc17705657
Successfully built 1ffc17705657
Successfully tagged open-php_php:latest
WARNING: Image for service php was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
Creating open-php_php_run ... done
Scanning files...
Analyzing files...
ERROR: UndefinedClass - contrib/OtlpGrpc/Exporter.php:103:36 - Class, interface or enum named grpc\ChannelCredentials does not exist (see https://psalm.dev/019)
$opts['credentials'] = Grpc\ChannelCredentials::createSsl('');
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:143:30 - Const Grpc\STATUS_OK is not defined (see https://psalm.dev/020)
if ($status->code == \Grpc\STATUS_OK) {
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:148:13 - Const Grpc\STATUS_CANCELLED is not defined (see https://psalm.dev/020)
\Grpc\STATUS_CANCELLED,
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:149:13 - Const Grpc\STATUS_DEADLINE_EXCEEDED is not defined (see https://psalm.dev/020)
\Grpc\STATUS_DEADLINE_EXCEEDED,
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:150:13 - Const Grpc\STATUS_PERMISSION_DENIED is not defined (see https://psalm.dev/020)
\Grpc\STATUS_PERMISSION_DENIED,
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:151:13 - Const Grpc\STATUS_RESOURCE_EXHAUSTED is not defined (see https://psalm.dev/020)
\Grpc\STATUS_RESOURCE_EXHAUSTED,
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:152:13 - Const Grpc\STATUS_ABORTED is not defined (see https://psalm.dev/020)
\Grpc\STATUS_ABORTED,
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:153:13 - Const Grpc\STATUS_OUT_OF_RANGE is not defined (see https://psalm.dev/020)
\Grpc\STATUS_OUT_OF_RANGE,
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:154:13 - Const Grpc\STATUS_UNAVAILABLE is not defined (see https://psalm.dev/020)
\Grpc\STATUS_UNAVAILABLE,
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:155:13 - Const Grpc\STATUS_DATA_LOSS is not defined (see https://psalm.dev/020)
\Grpc\STATUS_DATA_LOSS,
ERROR: UndefinedConstant - contrib/OtlpGrpc/Exporter.php:156:13 - Const Grpc\STATUS_UNAUTHENTICATED is not defined (see https://psalm.dev/020)
\Grpc\STATUS_UNAUTHENTICATED,
ERROR: ParamNameMismatch - sdk/Trace/Span.php:119:30 - Argument 1 of OpenTelemetry\Sdk\Trace\Span::end has wrong name $now, expecting $timestamp as defined by OpenTelemetry\Trace\Span::end (see https://psalm.dev/230)
public function end(?int $now = null): API\Span
ERROR: UndefinedClass - xdebug/.xdebugci/ingest.php:2:10 - Class, interface or enum named MongoDB\Driver\Manager does not exist (see https://psalm.dev/019)
$m = new \MongoDB\Driver\Manager( "mongodb+srv://ci-writer:{$_ENV['CIWRITEPASSWORD']}@xdebugci-qftmo.mongodb.net/test?retryWrites=true" );
ERROR: ForbiddenCode - xdebug/.xdebugci/ingest.php:7:20 - Use of shell_exec (see https://psalm.dev/002)
$abbrev = trim( `git describe --tags` );
ERROR: ForbiddenCode - xdebug/.xdebugci/ingest.php:33:18 - Use of shell_exec (see https://psalm.dev/002)
'ref' => trim( `git rev-parse --short --verify HEAD` ),
ERROR: UndefinedClass - xdebug/.xdebugci/ingest.php:82:14 - Class, interface or enum named MongoDB\Driver\BulkWrite does not exist (see https://psalm.dev/019)
$bulk = new \MongoDB\Driver\BulkWrite;
ERROR: UndefinedClass - xdebug/.xdebugci/ingest.php:83:2 - Class, interface or enum named MongoDB\Driver\BulkWrite does not exist (see https://psalm.dev/019)
$bulk->update(
ERROR: InvalidArrayOffset - xdebug/contrib/online_profiling_prepend.php:59:100 - Cannot access value on variable $sizename using a float offset, expecting array-key (see https://psalm.dev/115)
$used_memory = round($used_memory / pow(1024, ($i = floor(log($used_memory, 1024)))), 2) . $sizename[$i];
ERROR: TypeDoesNotContainType - xdebug/contrib/online_profiling_prepend.php:66:11 - string does not contain false (see https://psalm.dev/056)
if ($profile === false) {
ERROR: ForbiddenCode - xdebug/contrib/online_profiling_prepend.php:82:25 - Unsafe shell_exec (see https://psalm.dev/002)
$output.= shell_exec("/usr/bin/callgrind_annotate --inclusive=yes --tree=both $profile");
ERROR: InvalidOperand - xdebug/contrib/tracefile-analyser.php:180:40 - Cannot perform a numeric operation with a non-numeric type string (see https://psalm.dev/058)
if (! array_key_exists($depth - 1, $this->stack)) {
ERROR: InvalidScalarArgument - xdebug/contrib/tracefile-analyser.php:180:40 - Argument 1 of array_key_exists expects array-key, float|int provided (see https://psalm.dev/012)
if (! array_key_exists($depth - 1, $this->stack)) {
ERROR: InvalidOperand - xdebug/contrib/tracefile-analyser.php:181:34 - Cannot perform a numeric operation with a non-numeric type string (see https://psalm.dev/058)
$this->stack[$depth - 1] = [ '', 0, 0, 0, 0 ];
ERROR: InvalidOperand - xdebug/contrib/tracefile-analyser.php:183:30 - Cannot perform a numeric operation with a non-numeric type string (see https://psalm.dev/058)
$this->stack[$depth - 1][3] += $dTime;
ERROR: InvalidOperand - xdebug/contrib/tracefile-analyser.php:184:30 - Cannot perform a numeric operation with a non-numeric type string (see https://psalm.dev/058)
$this->stack[$depth - 1][4] += $dMemory;
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:10:26 - Not all code paths of xdebug_break end in a return statement, return type bool expected (see https://psalm.dev/011)
function xdebug_break(): bool
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:17:13 - No return statements were found for method xdebug_call_class but return type 'mixed' was expected (see https://psalm.dev/011)
/** @return mixed */
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:25:13 - No return statements were found for method xdebug_call_file but return type 'mixed' was expected (see https://psalm.dev/011)
/** @return mixed */
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:33:13 - No return statements were found for method xdebug_call_function but return type 'mixed' was expected (see https://psalm.dev/011)
/** @return mixed */
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:41:13 - No return statements were found for method xdebug_call_line but return type 'mixed' was expected (see https://psalm.dev/011)
/** @return mixed */
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:87:64 - Not all code paths of xdebug_get_collected_errors end in a return statement, return type array<array-key, mixed> expected (see https://psalm.dev/011)
function xdebug_get_collected_errors(bool $emptyList = false): array
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:94:39 - Not all code paths of xdebug_get_function_count end in a return statement, return type int expected (see https://psalm.dev/011)
function xdebug_get_function_count(): int
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:101:39 - Not all code paths of xdebug_get_function_stack end in a return statement, return type array<array-key, mixed> expected (see https://psalm.dev/011)
function xdebug_get_function_stack(): array
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:108:37 - Not all code paths of xdebug_get_gc_run_count end in a return statement, return type int expected (see https://psalm.dev/011)
function xdebug_get_gc_run_count(): int
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:115:49 - Not all code paths of xdebug_get_gc_total_collected_roots end in a return statement, return type int expected (see https://psalm.dev/011)
function xdebug_get_gc_total_collected_roots(): int
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:122:13 - No return statements were found for method xdebug_get_gcstats_filename but return type 'mixed' was expected (see https://psalm.dev/011)
/** @return mixed */
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:130:32 - Not all code paths of xdebug_get_headers end in a return statement, return type array<array-key, mixed> expected (see https://psalm.dev/011)
function xdebug_get_headers(): array
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:137:44 - Not all code paths of xdebug_get_monitored_functions end in a return statement, return type array<array-key, mixed> expected (see https://psalm.dev/011)
function xdebug_get_monitored_functions(): array
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:144:13 - No return statements were found for method xdebug_get_profiler_filename but return type 'mixed' was expected (see https://psalm.dev/011)
/** @return mixed */
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:152:36 - Not all code paths of xdebug_get_stack_depth end in a return statement, return type int expected (see https://psalm.dev/011)
function xdebug_get_stack_depth(): int
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:159:13 - No return statements were found for method xdebug_get_tracefile_name but return type 'mixed' was expected (see https://psalm.dev/011)
/** @return mixed */
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:175:39 - Not all code paths of xdebug_is_debugger_active end in a return statement, return type bool expected (see https://psalm.dev/011)
function xdebug_is_debugger_active(): bool
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:182:33 - Not all code paths of xdebug_memory_usage end in a return statement, return type int expected (see https://psalm.dev/011)
function xdebug_memory_usage(): int
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:189:38 - Not all code paths of xdebug_peak_memory_usage end in a return statement, return type int expected (see https://psalm.dev/011)
function xdebug_peak_memory_usage(): int
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:236:13 - No return statements were found for method xdebug_start_gcstats but return type 'mixed' was expected (see https://psalm.dev/011)
/** @return mixed */
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:244:75 - Not all code paths of xdebug_start_trace end in a return statement, return type string expected (see https://psalm.dev/011)
function xdebug_start_trace(?string $traceFile = null, int $options = 0): string
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:275:33 - Not all code paths of xdebug_stop_gcstats end in a return statement, return type string expected (see https://psalm.dev/011)
function xdebug_stop_gcstats(): string
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:282:31 - Not all code paths of xdebug_stop_trace end in a return statement, return type string expected (see https://psalm.dev/011)
function xdebug_stop_trace(): string
ERROR: InvalidReturnType - xdebug/php_xdebug.stub.php:289:31 - Not all code paths of xdebug_time_index end in a return statement, return type float expected (see https://psalm.dev/011)
function xdebug_time_index(): float
ERROR: ReservedWord - xdebug/php_xdebug.stub.php:297:26 - mixed is a reserved word (see https://psalm.dev/095)
function xdebug_var_dump(mixed ...$variable)
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:33:12 - Argument 1 of chdir cannot be false, possibly false value provided (see https://psalm.dev/104)
@chdir(getenv('TEST_PHP_SRCDIR'));
ERROR: InvalidScalarArgument - xdebug/run-xdebug-tests.php:83:33 - Argument 2 of ini_set expects string, int provided (see https://psalm.dev/012)
ini_set('pcre.backtrack_limit', PHP_INT_MAX);
ERROR: RedundantCondition - xdebug/run-xdebug-tests.php:93:16 - Type array<array-key, mixed> for $_ENV is never null (see https://psalm.dev/122)
$environment = $_ENV ?? [];
ERROR: TypeDoesNotContainNull - xdebug/run-xdebug-tests.php:93:25 - Cannot resolve types for $_ENV - array<array-key, mixed> does not contain null (see https://psalm.dev/090)
$environment = $_ENV ?? [];
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:147:17 - Use of shell_exec (see https://psalm.dev/002)
$php = trim(`which php`);
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:163:63 - Argument 1 of dirname cannot be false, possibly false value provided (see https://psalm.dev/104)
if (!strncasecmp(PHP_OS, 'win', 3) && file_exists(dirname($php) . '/phpdbg.exe')) {
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:164:36 - Argument 1 of dirname cannot be false, possibly false value provided (see https://psalm.dev/104)
$phpdbg = realpath(dirname($php) . '/phpdbg.exe');
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:165:35 - Argument 1 of dirname cannot be false, possibly false value provided (see https://psalm.dev/104)
} elseif (file_exists(dirname($php) . '/../../sapi/phpdbg/phpdbg')) {
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:166:36 - Argument 1 of dirname cannot be false, possibly false value provided (see https://psalm.dev/104)
$phpdbg = realpath(dirname($php) . '/../../sapi/phpdbg/phpdbg');
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:169:35 - Argument 1 of dirname cannot be false, possibly false value provided (see https://psalm.dev/104)
} elseif (file_exists(dirname($php) . '/phpdbg')) {
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:170:36 - Argument 1 of dirname cannot be false, possibly false value provided (see https://psalm.dev/104)
$phpdbg = realpath(dirname($php) . '/phpdbg');
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:213:24 - Argument 1 of is_executable cannot be false, possibly false value provided (see https://psalm.dev/104)
if (!is_executable($php)) {
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:219:30 - Argument 1 of strtoupper cannot be false, possibly false value provided (see https://psalm.dev/104)
$log_format = strtoupper(getenv('TEST_PHP_LOG_FORMAT'));
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:234:38 - Argument 2 of explode cannot be false, possibly false value provided (see https://psalm.dev/104)
$SHOW_ONLY_GROUPS = explode(',', getenv('SHOW_ONLY_GROUPS'));
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:241:32 - Argument 2 of explode cannot be false, possibly false value provided (see https://psalm.dev/104)
$user_tests = explode(',', getenv('TEST_PHP_USER'));
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:296:17 - Use of shell_exec (see https://psalm.dev/002)
$php_info = `$php $pass_options $info_params $no_file_cache "$info_file"`;
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:297:34 - Use of shell_exec (see https://psalm.dev/002)
define('TESTED_PHP_VERSION', `$php -n -r "echo PHP_VERSION;"`);
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:300:25 - Use of shell_exec (see https://psalm.dev/002)
$php_info_cgi = `$php_cgi $pass_options $info_params $no_file_cache -q "$info_file"`;
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:308:24 - Use of shell_exec (see https://psalm.dev/002)
$phpdbg_info = `$phpdbg $pass_options $info_params $no_file_cache -qrr "$info_file"`;
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:322:34 - Use of shell_exec (see https://psalm.dev/002)
$exts_to_test = explode(',', `$php $pass_options $info_params $no_file_cache "$info_file"`);
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:387:60 - Possibly undefined variable $user_input, first seen on line 382 (see https://psalm.dev/018)
if ($just_save_results || TRAVIS_CI || strlen(trim($user_input)) == 0 || strtolower($user_input[0]) == 'y') {
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:387:93 - Possibly undefined variable $user_input, first seen on line 382 (see https://psalm.dev/018)
if ($just_save_results || TRAVIS_CI || strlen(trim($user_input)) == 0 || strtolower($user_input[0]) == 'y') {
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:401:36 - Possibly undefined variable $user_input, first seen on line 382 (see https://psalm.dev/018)
} elseif (!strncasecmp($user_input, 'y', 1) || strlen(trim($user_input)) == 0) {
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:401:72 - Possibly undefined variable $user_input, first seen on line 382 (see https://psalm.dev/018)
} elseif (!strncasecmp($user_input, 'y', 1) || strlen(trim($user_input)) == 0) {
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:404:42 - Possibly undefined variable $fp, first seen on line 370 (see https://psalm.dev/018)
$user_email = trim(fgets($fp, 1024));
ERROR: InvalidScalarArgument - xdebug/run-xdebug-tests.php:416:100 - Argument 2 of file_get_contents expects bool, 0 provided (see https://psalm.dev/012)
$failed_tests_data .= $sep . file_get_contents(realpath($test_info['output']), FILE_BINARY);
ERROR: InvalidScalarArgument - xdebug/run-xdebug-tests.php:417:98 - Argument 2 of file_get_contents expects bool, 0 provided (see https://psalm.dev/012)
$failed_tests_data .= $sep . file_get_contents(realpath($test_info['diff']), FILE_BINARY);
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:432:33 - Unsafe shell_exec (see https://psalm.dev/002)
$autoconf = shell_exec(getenv('PHP_AUTOCONF') . ' --version');
ERROR: PossiblyFalseOperand - xdebug/run-xdebug-tests.php:432:44 - Cannot concatenate with a possibly false false|string (see https://psalm.dev/162)
$autoconf = shell_exec(getenv('PHP_AUTOCONF') . ' --version');
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:434:33 - Unsafe shell_exec (see https://psalm.dev/002)
$autoconf = shell_exec('autoconf --version');
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:438:28 - Unsafe shell_exec (see https://psalm.dev/002)
$libtool = shell_exec(INIT_DIR . '/libtool --version');
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:441:37 - Unsafe shell_exec (see https://psalm.dev/002)
$sys_libtool_path = shell_exec(__DIR__ . '/build/shtool path glibtool libtool');
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:444:36 - Unsafe shell_exec (see https://psalm.dev/002)
$sys_libtool = shell_exec(str_replace("\n", '', $sys_libtool_path) . ' --version');
ERROR: PossiblyFalseOperand - xdebug/run-xdebug-tests.php:452:28 - Cannot concatenate with a possibly false false|string (see https://psalm.dev/162)
system(getenv('CC') . " $flag >/dev/null 2>&1", $cc_status);
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:454:37 - Unsafe shell_exec (see https://psalm.dev/002)
$compiler = shell_exec(getenv('CC') . " $flag 2>&1");
ERROR: PossiblyFalseOperand - xdebug/run-xdebug-tests.php:454:48 - Cannot concatenate with a possibly false false|string (see https://psalm.dev/162)
$compiler = shell_exec(getenv('CC') . " $flag 2>&1");
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:460:24 - Unsafe shell_exec (see https://psalm.dev/002)
$ldd = shell_exec("ldd $php 2>/dev/null");
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:467:48 - Unsafe shell_exec (see https://psalm.dev/002)
$failed_tests_data .= "Bison:\n" . shell_exec('bison --version 2>/dev/null') . "\n";
ERROR: ForbiddenCode - xdebug/run-xdebug-tests.php:476:35 - Unsafe shell_exec (see https://psalm.dev/002)
$failed_tests_data .= shell_exec($php . ' -ddisplay_errors=stderr -dhtml_errors=0 -i 2> /dev/null');
ERROR: PossiblyFalseOperand - xdebug/run-xdebug-tests.php:476:46 - Cannot concatenate with a possibly false false|string (see https://psalm.dev/162)
$failed_tests_data .= shell_exec($php . ' -ddisplay_errors=stderr -dhtml_errors=0 -i 2> /dev/null');
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:487:24 - Possibly undefined variable $fp, first seen on line 370 (see https://psalm.dev/018)
fwrite($fp, "\nThank you for helping to make PHP better.\n");
ERROR: TypeDoesNotContainNull - xdebug/run-xdebug-tests.php:533:9 - Type int for $argc is never null (see https://psalm.dev/090)
if (!isset($argc, $argv) || !$argc) {
ERROR: TypeDoesNotContainNull - xdebug/run-xdebug-tests.php:533:9 - Type array<int, string> for $argv is never null (see https://psalm.dev/090)
if (!isset($argc, $argv) || !$argc) {
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:537:45 - Argument 2 of explode cannot be false, possibly false value provided (see https://psalm.dev/104)
$argv = array_merge($argv, explode(' ', getenv('TEST_PHP_ARGS')));
ERROR: RedundantCondition - xdebug/run-xdebug-tests.php:541:5 - Type int for $argc is never null (see https://psalm.dev/122)
if (isset($argc) && $argc > 1) {
ERROR: RedundantCondition - xdebug/run-xdebug-tests.php:554:17 - if (true) is redundant (see https://psalm.dev/122)
if ($repeat) {
ERROR: RedundantCondition - xdebug/run-xdebug-tests.php:554:17 - $repeat has already been asserted (see https://psalm.dev/122)
if ($repeat) {
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:849:16 - Argument 1 of strlen cannot be null, possibly null value provided (see https://psalm.dev/078)
if (strlen($conf_passed)) {
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:851:54 - Argument 1 of escapeshellarg cannot be null, possibly null value provided (see https://psalm.dev/078)
$pass_options .= ' -c ' . escapeshellarg($conf_passed);
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:894:20 - Argument 1 of fwrite cannot be null, possibly null value provided (see https://psalm.dev/078)
fwrite($html_file, "<hr/>\n" . get_summary(false, true));
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:900:20 - Argument 1 of fclose cannot be null, possibly null value provided (see https://psalm.dev/078)
fclose($html_file);
ERROR: PossiblyUndefinedArrayOffset - xdebug/run-xdebug-tests.php:1064:17 - Possibly undefined array key $url_bits['host'] on array{fragment?: string, host?: string, pass?: string, path?: string, port?: int, query?: string, scheme?: string, user?: string}|false (see https://psalm.dev/167)
$path = $url_bits['host'] . $url_bits['path'];
ERROR: PossiblyUndefinedArrayOffset - xdebug/run-xdebug-tests.php:1064:37 - Possibly undefined array key $url_bits['path'] on array{fragment?: string, host?: string, pass?: string, path?: string, port?: int, query?: string, scheme?: string, user?: string}|false (see https://psalm.dev/167)
$path = $url_bits['host'] . $url_bits['path'];
ERROR: PossiblyUndefinedArrayOffset - xdebug/run-xdebug-tests.php:1065:17 - Possibly undefined array key $proxy['host'] on array{fragment?: string, host?: string, pass?: string, path?: string, port?: int, query?: string, scheme?: string, user?: string}|false (see https://psalm.dev/167)
$host = $proxy['host'];
ERROR: PossiblyUndefinedArrayOffset - xdebug/run-xdebug-tests.php:1071:17 - Possibly undefined array key $url_bits['path'] on array{fragment?: string, host?: string, pass?: string, path?: string, port?: int, query?: string, scheme?: string, user?: string}|false (see https://psalm.dev/167)
$path = $url_bits['path'];
ERROR: PossiblyUndefinedArrayOffset - xdebug/run-xdebug-tests.php:1072:17 - Possibly undefined array key $url_bits['host'] on array{fragment?: string, host?: string, pass?: string, path?: string, port?: int, query?: string, scheme?: string, user?: string}|false (see https://psalm.dev/167)
$host = $url_bits['host'];
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:1136:24 - Argument 1 of strtoupper cannot be false, possibly false value provided (see https://psalm.dev/104)
switch (strtoupper(getenv('TEST_PHP_ERROR_STYLE'))) {
ERROR: PossiblyInvalidOperand - xdebug/run-xdebug-tests.php:1225:34 - Cannot perform a numeric operation with a non-numeric type string (see https://psalm.dev/163)
$data .= "\nTermsig=" . ($stat['exitcode'] - 128) . "\n";
ERROR: InvalidArgument - xdebug/run-xdebug-tests.php:1255:24 - Argument 1 of fwrite expects resource, closed-resource provided (see https://psalm.dev/004)
fwrite($failed_tests_file, "$index\n");
ERROR: InvalidArgument - xdebug/run-xdebug-tests.php:1258:24 - Argument 1 of fwrite expects resource, closed-resource provided (see https://psalm.dev/004)
fwrite($result_tests_file, "$result\t$index\n");
ERROR: TypeDoesNotContainType - xdebug/run-xdebug-tests.php:1271:9 - if (false) is impossible (see https://psalm.dev/056)
if ($cfg['show'][$file]) {
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:1332:52 - Possibly undefined variable $line, first seen on line 1324 (see https://psalm.dev/018)
if ($bork_info === null && strncmp('--TEST--', $line, 8)) {
ERROR: RedundantCast - xdebug/run-xdebug-tests.php:1349:24 - Redundant cast to string (see https://psalm.dev/262)
$section = (string) $r[1];
ERROR: InvalidOperand - xdebug/run-xdebug-tests.php:1394:52 - Cannot perform a numeric operation with non-numeric types bool and bool (see https://psalm.dev/058)
if (!isset($section_text['PHPDBG']) && isset($section_text['FILE']) + isset($section_text['FILEEOF']) + isset($section_text['FILE_EXTERNAL']) != 1) {
ERROR: InvalidOperand - xdebug/run-xdebug-tests.php:1394:117 - Cannot perform a numeric operation with a non-numeric type bool (see https://psalm.dev/058)
if (!isset($section_text['PHPDBG']) && isset($section_text['FILE']) + isset($section_text['FILEEOF']) + isset($section_text['FILE_EXTERNAL']) != 1) {
ERROR: InvalidScalarArgument - xdebug/run-xdebug-tests.php:1411:89 - Argument 2 of file_get_contents expects bool, 0 provided (see https://psalm.dev/012)
$section_text[$prefix] = file_get_contents($section_text[$key], FILE_BINARY);
ERROR: InvalidOperand - xdebug/run-xdebug-tests.php:1419:18 - Cannot perform a numeric operation with non-numeric types bool and bool (see https://psalm.dev/058)
if ((isset($section_text['EXPECT']) + isset($section_text['EXPECTF']) + isset($section_text['EXPECTREGEX'])) != 1) {
ERROR: InvalidOperand - xdebug/run-xdebug-tests.php:1419:85 - Cannot perform a numeric operation with a non-numeric type bool (see https://psalm.dev/058)
if ((isset($section_text['EXPECT']) + isset($section_text['EXPECTF']) + isset($section_text['EXPECTREGEX'])) != 1) {
ERROR: PossiblyInvalidArgument - xdebug/run-xdebug-tests.php:1636:65 - Argument 1 of dirname expects string, possibly different type array<array-key, mixed>|mixed provided (see https://psalm.dev/092)
$section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
ERROR: PossiblyFalseArgument - xdebug/run-xdebug-tests.php:1639:59 - Argument 2 of str_replace cannot be false, possibly false value provided (see https://psalm.dev/104)
$section_text['INI'] = str_replace('{RUNID}', getenv('UNIQ_RUN_ID'), $section_text['INI']);
ERROR: PossiblyInvalidArgument - xdebug/run-xdebug-tests.php:1740:48 - Argument 1 of dirname expects string, possibly different type array<array-key, mixed>|mixed provided (see https://psalm.dev/092)
$IN_REDIRECT['dir'] = realpath(dirname($file));
ERROR: PossiblyInvalidCast - xdebug/run-xdebug-tests.php:1783:40 - array<array-key, mixed> cannot be cast to string (see https://psalm.dev/190)
'info' => "$bork_info [$file]",
ERROR: PossiblyInvalidCast - xdebug/run-xdebug-tests.php:1799:36 - array<array-key, mixed> cannot be cast to string (see https://psalm.dev/190)
'info' => "$bork_info [$file]",
ERROR: PossiblyInvalidOperand - xdebug/run-xdebug-tests.php:1990:18 - Cannot perform a numeric operation with a non-numeric type string (see https://psalm.dev/163)
if ($time >= $slow_min_ms * 1000000) {
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2213:19 - Possibly undefined variable $wanted_headers, first seen on line 2073 (see https://psalm.dev/018)
$wanted = $wanted_headers . "\n--HEADERS--\n" . $wanted;
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2214:19 - Possibly undefined variable $output_headers, first seen on line 2084 (see https://psalm.dev/018)
$output = $output_headers . "\n--HEADERS--\n" . $output;
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2217:37 - Possibly undefined variable $wanted_headers, first seen on line 2073 (see https://psalm.dev/018)
$wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2222:9 - Possibly undefined variable $restype, first seen on line 2222 (see https://psalm.dev/018)
$restype[] = 'LEAK';
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2226:9 - Possibly undefined variable $restype, first seen on line 2222 (see https://psalm.dev/018)
$restype[] = 'WARN';
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2231:13 - Possibly undefined variable $restype, first seen on line 2222 (see https://psalm.dev/018)
$restype[] = 'XFAIL';
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2234:13 - Possibly undefined variable $restype, first seen on line 2222 (see https://psalm.dev/018)
$restype[] = 'FAIL';
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2286:30 - Possibly undefined variable $restype, first seen on line 2222 (see https://psalm.dev/018)
show_result(implode('&', $restype), $tested, $tested_file, $info, $temp_filenames);
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2288:14 - Possibly undefined variable $restype, first seen on line 2222 (see https://psalm.dev/018)
foreach ($restype as $type) {
ERROR: PossiblyUndefinedVariable - xdebug/run-xdebug-tests.php:2300:24 - Possibly undefined variable $restype, first seen on line 2222 (see https://psalm.dev/018)
junit_mark_test_as($restype, str_replace(TEST_PHP_SRCDIR . '/', '', $tested_file), $tested, null, $info, $diff);
ERROR: PossiblyFalseOperand - xdebug/run-xdebug-tests.php:2673:49 - Cannot concatenate with a possibly false false|string (see https://psalm.dev/162)
fwrite($html_file, '<h2>Time Start: ' . date('Y-m-d H:i:s', $start_time) . "</h2>\n");
ERROR: PossiblyFalseOperand - xdebug/run-xdebug-tests.php:2677:26 - Cannot concatenate with a possibly false false|string (see https://psalm.dev/162)
echo 'TIME START ' . date('Y-m-d H:i:s', $start_time) . "\n=====================================================================\n";
ERROR: PossiblyFalseOperand - xdebug/run-xdebug-tests.php:2686:47 - Cannot concatenate with a possibly false false|string (see https://psalm.dev/162)
fwrite($html_file, '<h2>Time End: ' . date('Y-m-d H:i:s', $end_time) . "</h2>\n");
ERROR: PossiblyFalseOperand - xdebug/run-xdebug-tests.php:2689:95 - Cannot concatenate with a possibly false false|string (see https://psalm.dev/162)
echo "=====================================================================\nTIME END " . date('Y-m-d H:i:s', $end_time) . "\n";
ERROR: TypeDoesNotContainType - xdebug/run-xdebug-tests.php:2771:16 - Type non-empty-list<string> for $SHOW_ONLY_GROUPS is never falsy (see https://psalm.dev/056)
} elseif (!$SHOW_ONLY_GROUPS) {
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:2778:32 - Argument 1 of str_replace cannot be null, possibly null value provided (see https://psalm.dev/078)
$url = str_replace($temp_target, $temp_urlbase, $temp_filenames['file']);
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:2778:46 - Argument 2 of str_replace cannot be null, possibly null value provided (see https://psalm.dev/078)
$url = str_replace($temp_target, $temp_urlbase, $temp_filenames['file']);
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:2787:32 - Argument 1 of str_replace cannot be null, possibly null value provided (see https://psalm.dev/078)
$url = str_replace($temp_target, $temp_urlbase, $temp_filenames['skip']);
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:2787:46 - Argument 2 of str_replace cannot be null, possibly null value provided (see https://psalm.dev/078)
$url = str_replace($temp_target, $temp_urlbase, $temp_filenames['skip']);
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:2794:32 - Argument 1 of str_replace cannot be null, possibly null value provided (see https://psalm.dev/078)
$url = str_replace($temp_target, $temp_urlbase, $temp_filenames['diff']);
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:2794:46 - Argument 2 of str_replace cannot be null, possibly null value provided (see https://psalm.dev/078)
$url = str_replace($temp_target, $temp_urlbase, $temp_filenames['diff']);
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:2801:32 - Argument 1 of str_replace cannot be null, possibly null value provided (see https://psalm.dev/078)
$url = str_replace($temp_target, $temp_urlbase, $temp_filenames['mem']);
ERROR: PossiblyNullArgument - xdebug/run-xdebug-tests.php:2801:46 - Argument 2 of str_replace cannot be null, possibly null value provided (see https://psalm.dev/078)
$url = str_replace($temp_target, $temp_urlbase, $temp_filenames['mem']);
ERROR: RedundantCondition - xdebug/run-xdebug-tests.php:3030:13 - Type 5 for $max is never falsy (see https://psalm.dev/122)
if ($max) {
ERROR: InvalidLiteralArgument - xdebug/tests/filter/foobar/foobar.php:8:21 - Argument 1 of strstr expects a non-literal value, "Hello!\n" provided (see https://psalm.dev/237)
echo strstr("Hello!\n", 'e');
ERROR: UndefinedThisPropertyAssignment - xdebug/tests/filter/stack/one.php:11:9 - Instance property Stack\One::$obj is not defined (see https://psalm.dev/040)
$this->obj = $object;
ERROR: UndefinedThisPropertyFetch - xdebug/tests/filter/stack/one.php:16:16 - Instance property Stack\One::$obj is not defined (see https://psalm.dev/041)
return $this->obj->$name(...$arguments);
ERROR: UndefinedThisPropertyAssignment - xdebug/tests/filter/stack/three.php:11:9 - Instance property Stack\Three::$obj is not defined (see https://psalm.dev/040)
$this->obj = $object;
ERROR: UndefinedThisPropertyFetch - xdebug/tests/filter/stack/three.php:16:16 - Instance property Stack\Three::$obj is not defined (see https://psalm.dev/041)
return $this->obj->$name(...$arguments);
ERROR: UndefinedThisPropertyAssignment - xdebug/tests/filter/stack/two.php:11:9 - Instance property Stack\Two::$obj is not defined (see https://psalm.dev/040)
$this->obj = $object;
ERROR: UndefinedThisPropertyFetch - xdebug/tests/filter/stack/two.php:16:16 - Instance property Stack\Two::$obj is not defined (see https://psalm.dev/041)
return $this->obj->$name(...$arguments);
ERROR: InvalidLiteralArgument - xdebug/tests/filter/xdebug/trace/xdebug.php:11:21 - Argument 1 of strstr expects a non-literal value, "Hello!\n" provided (see https://psalm.dev/237)
echo strstr("Hello!\n", 'e');
ERROR: InvalidLiteralArgument - xdebug/tests/filter/xdebug/xdebug.php:8:21 - Argument 1 of strstr expects a non-literal value, "Hello!\n" provided (see https://psalm.dev/237)
echo strstr("Hello!\n", 'e');
------------------------------
157 errors found
------------------------------
623 other issues found.
You can display them with --show-info=true
------------------------------
Checks took 10.36 seconds and used 13.175MB of memory
No files analyzed
Psalm was able to infer types for 88.5489% of the codebase
ERROR: 2
make: *** [psalm] Error 2
(base) Ndubuisis-MacBook-Pro:open-php prondubuisi$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment