for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\SelfDiagnosis\Checks;
use BeyondCode\SelfDiagnosis\Checks\Check;
class XDebugIsNotEnabled implements Check
{
/**
* The name of the check.
*
* @return string
*/
public function name(array $config): string
return 'The xdebug extension is not active.';
}
* Perform the actual verification of this check.
* @return bool
public function check(array $config): bool
return extension_loaded('xdebug') === false;
* The error message to display in case the check does not pass.
public function message(array $config): string
return 'You should not have the "xdebug" PHP extension activated in production.';