Skip to content

Commit

Permalink
Fix trigger error warning (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstm authored and moesjarraf committed Mar 28, 2018
1 parent 2dd17c0 commit 0bbe18e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DataEnricher/Processor/Enrich.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function applyToNode(Node $node)
}

if (!is_scalar($key)) {
trigger_error("Trying to match on non-scalar type", E_WARNING);
trigger_error("Trying to match on non-scalar type", E_USER_WARNING);
continue;
}

Expand All @@ -53,7 +53,7 @@ public function applyToNode(Node $node)
}

if (!is_scalar($key)) {
trigger_error("Trying to match on non-scalar type", E_WARNING);
trigger_error("Trying to match on non-scalar type", E_USER_WARNING);
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/DataEnricher/Processor/Mustache.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function applyToNode(Node $node)
$template = $node->getInstruction($this);

if (!is_string($template) && !is_array($template) && !is_object($template)) {
return trigger_error("Unable to parse given template of type: " . gettype($template), E_WARNING);
return trigger_error("Unable to parse given template of type: " . gettype($template), E_USER_WARNING);
}

$result = $this->getParsedResult($template);
Expand Down

0 comments on commit 0bbe18e

Please sign in to comment.