[Bridge] Return name of the parameter that failed the check

This commit is contained in:
logmanoriginal 2016-09-01 20:59:49 +02:00
parent 7c36b51aa2
commit 47b6cb8937
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}
}