Page MenuHomeDevCentral

D3787.id9814.diff
No OneTemporary

D3787.id9814.diff

diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -43,7 +43,7 @@
"keruald/commands": "0.0.1",
"keruald/database": "0.5.2",
"keruald/github": "0.2.1",
- "keruald/omnitools": "0.15.0",
+ "keruald/omnitools": "0.15.1",
"keruald/report": "0.1.0"
},
"autoload": {
diff --git a/omnitools/src/Debug/_register_to_global_space.php b/omnitools/src/Debug/_register_to_global_space.php
--- a/omnitools/src/Debug/_register_to_global_space.php
+++ b/omnitools/src/Debug/_register_to_global_space.php
@@ -4,6 +4,10 @@
use Keruald\OmniTools\Debug\Debugger;
+const SQL_ERROR = 65;
+const HACK_ERROR = 99;
+const GENERAL_ERROR = 117;
+
if (!function_exists("dprint_r")) {
function dprint_r ($variable) {
Debugger::printVariable($variable);
diff --git a/omnitools/tests/Debug/DebuggerTest.php b/omnitools/tests/Debug/DebuggerTest.php
--- a/omnitools/tests/Debug/DebuggerTest.php
+++ b/omnitools/tests/Debug/DebuggerTest.php
@@ -19,6 +19,7 @@
Debugger::register();
$this->assertTrue(function_exists("dprint_r"));
+ $this->assertTrue(defined("SQL_ERROR"));
}
private function assertTestSuiteStateIsValid() : void {

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 24, 04:56 (20 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3099652
Default Alt Text
D3787.id9814.diff (1 KB)

Event Timeline