We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0bb4002 + 4883ea4 commit c830c68Copy full SHA for c830c68
1 file changed
src/ToolbarService.php
@@ -102,7 +102,13 @@ public function registry(): PanelRegistry
102
*/
103
public function isEnabled(): bool
104
{
105
- if (defined('PHPUNIT_COMPOSER_INSTALL') && !$GLOBALS['FORCE_DEBUGKIT_TOOLBAR']) {
+ if (!isset($GLOBALS['FORCE_DEBUGKIT_TOOLBAR'])) {
106
+ $GLOBALS['FORCE_DEBUGKIT_TOOLBAR'] = false;
107
+ }
108
+ if (
109
+ defined('PHPUNIT_COMPOSER_INSTALL') &&
110
+ !$GLOBALS['FORCE_DEBUGKIT_TOOLBAR']
111
+ ) {
112
return false;
113
}
114
$enabled = (bool)Configure::read('debug')
0 commit comments