Skip to content

Commit

Permalink
no array bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBock committed Jul 26, 2020
1 parent 7689aa4 commit 94ccb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Watcher/ErrorWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct( Plugin $plugin ) {

public function onError() {
$error = error_get_last();
if ($error['type'] === E_ERROR) {
if (is_array($error) && $error['type'] === E_ERROR) {
$this->writer->addLog(
ProcessLog::build()
->setEventType( Plugin::EVENT_TYPE_ERROR )
Expand Down

0 comments on commit 94ccb1a

Please sign in to comment.