1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Remove error_logs

This commit is contained in:
Brown 2018-10-19 13:13:55 -04:00
parent e0dda676ed
commit d6a6e6a16c
2 changed files with 1 additions and 4 deletions

View File

@ -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);

View File

@ -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