From d6a6e6a16c1923f3f46fb102056957a7dce94534 Mon Sep 17 00:00:00 2001 From: Brown Date: Fri, 19 Oct 2018 13:13:55 -0400 Subject: [PATCH] Remove error_logs --- src/Psalm/Codebase/Analyzer.php | 2 +- src/Psalm/Fork/Pool.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Psalm/Codebase/Analyzer.php b/src/Psalm/Codebase/Analyzer.php index 55e6ffd8d..7e66da972 100644 --- a/src/Psalm/Codebase/Analyzer.php +++ b/src/Psalm/Codebase/Analyzer.php @@ -142,7 +142,7 @@ class Analyzer */ private function getFileChecker(ProjectChecker $project_checker, $file_path, array $filetype_checkers) { - $extension = (string)pathinfo($file_path)['extension']; + $extension = (string) (pathinfo($file_path)['extension'] ?? ''); $file_name = $this->config->shortenFileName($file_path); diff --git a/src/Psalm/Fork/Pool.php b/src/Psalm/Fork/Pool.php index c23830d9a..48215e9f0 100644 --- a/src/Psalm/Fork/Pool.php +++ b/src/Psalm/Fork/Pool.php @@ -268,14 +268,11 @@ class Pool $status = 0; if ($process_lookup) { - error_log('Forcing child ' . $child_pid . ' to close'); posix_kill($child_pid, SIGALRM); if (pcntl_waitpid($child_pid, $status) < 0) { error_log(posix_strerror(posix_get_last_error())); } - } else { - error_log('Child ' . $child_pid . ' presumably dead, spawned from ' . $command); } // Check to see if the child died a graceful death