Skip to content

Commit

Permalink
fix: disable xdebug automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Jan 2, 2025
1 parent 3f1637c commit 0243c86
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 52 deletions.
15 changes: 15 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<?php

/*
|--------------------------------------------------------------------------
| Restart If Xdebug Is Loaded
|--------------------------------------------------------------------------
|
| If the Xdebug extension is loaded, the application will automatically
| restart unless the environment variable PINT_ALLOW_XDEBUG is set. This
| ensures the application runs without the performance overhead of Xdebug.
|
*/

(new Composer\XdebugHandler\XdebugHandler('PINT'))->check();

unset($xdebug);

/*
|--------------------------------------------------------------------------
| Create The Application
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"ext-xml": "*"
},
"require-dev": {
"composer/xdebug-handler": "^3.0.5",
"friendsofphp/php-cs-fixer": "^3.66.0",
"illuminate/view": "^10.48.25",
"larastan/larastan": "^2.9.12",
Expand Down
100 changes: 48 additions & 52 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0243c86

Please sign in to comment.