From 77b879c1142fbba395c2a54950ad040c892e192e Mon Sep 17 00:00:00 2001 From: samizdam Date: Sat, 3 Mar 2018 00:11:55 +0300 Subject: [PATCH 1/3] Ignore IDE files. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 793ef58..b372dc9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/.idea/ phpunit.xml reports sandbox From 0b6fac212cfcda6b91d2123e0d5d644b07f993fd Mon Sep 17 00:00:00 2001 From: samizdam Date: Sat, 3 Mar 2018 00:19:44 +0300 Subject: [PATCH 2/3] Use RATCHET_DISABLE_XDEBUG_WARN env var for disable user warning. --- src/Ratchet/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ratchet/App.php b/src/Ratchet/App.php index f378534..da41838 100644 --- a/src/Ratchet/App.php +++ b/src/Ratchet/App.php @@ -62,7 +62,7 @@ class App { * @param LoopInterface $loop Specific React\EventLoop to bind the application to. null will create one for you. */ public function __construct($httpHost = 'localhost', $port = 8080, $address = '127.0.0.1', LoopInterface $loop = null) { - if (extension_loaded('xdebug')) { + if (extension_loaded('xdebug') && getenv('RATCHET_DISABLE_XDEBUG_WARN') === false) { trigger_error('XDebug extension detected. Remember to disable this if performance testing or going live!', E_USER_WARNING); } From 8bc7b9f4af182967fb201a46f97de63c828548a3 Mon Sep 17 00:00:00 2001 From: Matt Bonneau Date: Tue, 6 Mar 2018 09:28:01 -0500 Subject: [PATCH 3/3] Remove IDE from .gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index b372dc9..793ef58 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/.idea/ phpunit.xml reports sandbox