You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Xdebug warning was being shown even when XdebugHandler would avoid the slow down by unloading the extension. This avoids showing the warning for users who have not disabled XdebugHandler via env or other means.
if ($allowXdebug && !XdebugHandler::isXdebugActive()) {
97
-
$errorOutput->getStyle()->note('You are running with "--xdebug" enabled, but the Xdebug PHP extension is not active. The process will not halt at breakpoints.');
$errorOutput->getStyle()->note('The Xdebug PHP extension is active, but "--xdebug" is not used. This may slow down performance and the process will not halt at breakpoints.');
100
-
}
101
-
102
96
if (!$allowXdebug) {
103
97
$xdebug = newXdebugHandler('phpstan');
104
98
$xdebug->setPersistent();
105
99
$xdebug->check();
106
100
unset($xdebug);
107
101
}
108
102
103
+
if ($allowXdebug && !XdebugHandler::isXdebugActive()) {
104
+
$errorOutput->getStyle()->note('You are running with "--xdebug" enabled, but the Xdebug PHP extension is not active. The process will not halt at breakpoints.');
$errorOutput->getStyle()->note('The Xdebug PHP extension is active, but "--xdebug" is not used. This may slow down performance and the process will not halt at breakpoints.');
107
+
}
108
+
109
109
if ($memoryLimit !== null) {
110
110
if (Strings::match($memoryLimit, '#^-?\d+[kMG]?$#i') === null) {
111
111
$errorOutput->writeLineFormatted(sprintf('Invalid memory limit format "%s".', $memoryLimit));
0 commit comments