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