mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 16:27:23 +01:00
chore: improves type coverage
This commit is contained in:
@ -42,15 +42,15 @@ final class Coverage
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($runtime->hasXdebug()) {
|
||||
if (version_compare((string) phpversion('xdebug'), '3.1', '>=')) {
|
||||
if (! in_array('coverage', xdebug_info('mode'), true)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (! $runtime->hasXdebug()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
if (! version_compare((string) phpversion('xdebug'), '3.1', '>=')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return in_array('coverage', xdebug_info('mode'), true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user