Skip to content

Commit 6204f2c

Browse files
committed
fix(AjaxHandler): deprecation error
Deprecated: Creation of dynamic property Php_Error_Log_Viewer. thanks @irulvam & @andymoyle
1 parent 0fda75f commit 6204f2c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/AjaxHandler.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
*/
1313
class AjaxHandler
1414
{
15+
public $log_handler;
16+
1517
public function __construct($log_handler)
1618
{
1719
$this->log_handler = $log_handler;
@@ -38,8 +40,8 @@ public function ajax_handle_errors()
3840
return;
3941
}
4042
$file_issues = $this->log_handler->get_file_issues();
41-
42-
if ( ! empty( $file_issues ) ) {
43+
44+
if (! empty($file_issues)) {
4345
$this->ajax_header();
4446
echo $file_issues;
4547
die();
@@ -58,7 +60,7 @@ public function ajax_json_log()
5860
{
5961
$this->ajax_header();
6062
$content = $this->log_handler->get_parsed_content();
61-
echo( json_encode(array_values($content)) );
63+
echo json_encode(array_values($content));
6264
die();
6365
}
6466

0 commit comments

Comments
 (0)