Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15389806
D21498.id51164.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
D21498.id51164.diff
View Options
diff --git a/src/error/PhutilErrorHandler.php b/src/error/PhutilErrorHandler.php
--- a/src/error/PhutilErrorHandler.php
+++ b/src/error/PhutilErrorHandler.php
@@ -180,10 +180,10 @@
* @return void
* @task internal
*/
- public static function handleError($num, $str, $file, $line, $ctx) {
+ public static function handleError($num, $str, $file, $line, $ctx = null) {
foreach (self::$traps as $trap) {
- $trap->addError($num, $str, $file, $line, $ctx);
+ $trap->addError($num, $str, $file, $line);
}
if ((error_reporting() & $num) == 0) {
@@ -214,7 +214,6 @@
array(
'file' => $file,
'line' => $line,
- 'context' => $ctx,
'error_code' => $num,
'trace' => $trace,
));
diff --git a/src/error/PhutilErrorTrap.php b/src/error/PhutilErrorTrap.php
--- a/src/error/PhutilErrorTrap.php
+++ b/src/error/PhutilErrorTrap.php
@@ -41,13 +41,12 @@
private $destroyed;
private $errors = array();
- public function addError($num, $str, $file, $line, $ctx) {
+ public function addError($num, $str, $file, $line) {
$this->errors[] = array(
'num' => $num,
'str' => $str,
'file' => $file,
'line' => $line,
- 'ctx' => $ctx,
);
return $this;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 5:40 AM (3 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706097
Default Alt Text
D21498.id51164.diff (1 KB)
Attached To
Mode
D21498: Fix error handler on PHP 8
Attached
Detach File
Event Timeline
Log In to Comment