From 0bbe18ea983171f3a3bf2bea2e9835f40ccbabff Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 28 Mar 2018 11:34:08 +0200 Subject: [PATCH] Fix trigger error warning (#33) --- src/DataEnricher/Processor/Enrich.php | 4 ++-- src/DataEnricher/Processor/Mustache.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DataEnricher/Processor/Enrich.php b/src/DataEnricher/Processor/Enrich.php index 2141afe..e103339 100644 --- a/src/DataEnricher/Processor/Enrich.php +++ b/src/DataEnricher/Processor/Enrich.php @@ -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; } @@ -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; } diff --git a/src/DataEnricher/Processor/Mustache.php b/src/DataEnricher/Processor/Mustache.php index 72d44df..611bc61 100644 --- a/src/DataEnricher/Processor/Mustache.php +++ b/src/DataEnricher/Processor/Mustache.php @@ -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);