Skip to content

Commit 0243c86

Browse files
committed
fix: disable xdebug automatically
1 parent 3f1637c commit 0243c86

File tree

3 files changed

+64
-52
lines changed

3 files changed

+64
-52
lines changed

bootstrap/app.php

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
<?php
22

3+
/*
4+
|--------------------------------------------------------------------------
5+
| Restart If Xdebug Is Loaded
6+
|--------------------------------------------------------------------------
7+
|
8+
| If the Xdebug extension is loaded, the application will automatically
9+
| restart unless the environment variable PINT_ALLOW_XDEBUG is set. This
10+
| ensures the application runs without the performance overhead of Xdebug.
11+
|
12+
*/
13+
14+
(new Composer\XdebugHandler\XdebugHandler('PINT'))->check();
15+
16+
unset($xdebug);
17+
318
/*
419
|--------------------------------------------------------------------------
520
| Create The Application

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"ext-xml": "*"
2424
},
2525
"require-dev": {
26+
"composer/xdebug-handler": "^3.0.5",
2627
"friendsofphp/php-cs-fixer": "^3.66.0",
2728
"illuminate/view": "^10.48.25",
2829
"larastan/larastan": "^2.9.12",

composer.lock

+48-52
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)