From 47b6cb8937e65de2431fc276dd58d84e7d2d095e Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Thu, 1 Sep 2016 20:59:49 +0200 Subject: [PATCH] [Bridge] Return name of the parameter that failed the check --- lib/Bridge.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index 2c8722a..84202d5 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -225,8 +225,10 @@ abstract class BridgeAbstract implements BridgeInterface { break; } - if(is_null($data[$name])) + if(is_null($data[$name])){ + echo 'Parameter \'' . $name . '\' is invalid!' . PHP_EOL; return false; + } } }