Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12318275
D3787.id9813.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3787.id9813.diff
View Options
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
Details
Attached
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.id9813.diff (1 KB)
Attached To
Mode
D3787: Import _ERROR constants into global debug space
Attached
Detach File
Event Timeline
Log In to Comment