Page MenuHomeDevCentral

D1622.diff
No OneTemporary

D1622.diff

diff --git a/core.php b/core.php
--- a/core.php
+++ b/core.php
@@ -2,6 +2,7 @@
namespace Keruald;
+use Keruald\OmniTools\Debug\Debugger;
use Keruald\OmniTools\Identifiers\UUID;
use Keruald\OmniTools\Network\IP;
use Keruald\OmniTools\Strings\Multibyte\StringUtilities;
@@ -90,9 +91,7 @@
* @param mixed $variable the variable to dump
*/
function dprint_r ($variable) {
- echo '<pre>';
- print_r($variable);
- echo '</pre>';
+ Debugger::printVariable($variable);
}
/**
@@ -102,9 +101,8 @@
* @param mixed $variable the variable to dump
*/
function dieprint_r ($variable) {
- dprint_r($variable);
- die;
-};
+ Debugger::printVariableAndDie($variable);
+}
///
/// Client information

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 22:02 (14 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2363206
Default Alt Text
D1622.diff (725 B)

Event Timeline