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