[App] Use trigger_error instead of echo
This commit is contained in:
parent
0adf940068
commit
bf61fdbed4
@ -56,7 +56,7 @@ class App {
|
|||||||
*/
|
*/
|
||||||
public function __construct($httpHost = 'localhost', $port = 8080, $address = '127.0.0.1', LoopInterface $loop = null) {
|
public function __construct($httpHost = 'localhost', $port = 8080, $address = '127.0.0.1', LoopInterface $loop = null) {
|
||||||
if (extension_loaded('xdebug')) {
|
if (extension_loaded('xdebug')) {
|
||||||
echo "XDebug extension detected. Remember to disable this if performance testing or going live!\n";
|
trigger_error("XDebug extension detected. Remember to disable this if performance testing or going live!", E_USER_WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null === $loop) {
|
if (null === $loop) {
|
||||||
|
Loading…
Reference in New Issue
Block a user