Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
cacing69 committed Sep 6, 2023
1 parent 8fc6b60 commit 1da4434
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Adapter/LowerCallbackAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ public function __construct(string $raw)
}
} else {
preg_match(self::$signature, $raw, $node);
$this->node = $node[1];

if(array_key_exists(1, $node)) {
$this->node = $node[1];
}

$this->callMethod = "extract";
$this->callMethodParameter = ["_text"];
Expand Down
4 changes: 3 additions & 1 deletion src/Adapter/UpperCallbackAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public function __construct(string $raw)
} else {
preg_match(self::$signature, $raw, $node);

$this->node = $node[1];
if(array_key_exists(1, $node)) {
$this->node = $node[1];
}

$this->callMethod = "extract";
$this->callMethodParameter = ["_text"];
Expand Down

0 comments on commit 1da4434

Please sign in to comment.