Skip to content

Attempt unloading Xdebug before showing warnings#2299

Merged
ondrejmirtes merged 1 commit intophpstan:1.10.xfrom
AJenbo:patch-2
Mar 30, 2023
Merged

Attempt unloading Xdebug before showing warnings#2299
ondrejmirtes merged 1 commit intophpstan:1.10.xfrom
AJenbo:patch-2

Conversation

@AJenbo
Copy link
Copy Markdown
Contributor

@AJenbo AJenbo commented Mar 22, 2023

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.

This also has the benefit of making the second message less misleading as it is now only sown when users have a setup that is currently causing a needless slowdown of performance.

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.
@ondrejmirtes
Copy link
Copy Markdown
Member

Makes sense, thank you!

@ondrejmirtes ondrejmirtes merged commit 53d0d21 into phpstan:1.10.x Mar 30, 2023
@AJenbo AJenbo deleted the patch-2 branch March 30, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants