mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 12:24:49 +01:00
Remove error_logs
This commit is contained in:
parent
e0dda676ed
commit
d6a6e6a16c
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user