Skip to content

Commit 97a60c4

Browse files
Update Converter.php
1 parent 62ead39 commit 97a60c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Converter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ protected function checkInput($data)
114114
{
115115
if(is_string($data)){
116116
$value = $this->validateInput($data);
117-
if($value==false) throw new Exception\InvalidArgumentException('Invalid data. Please enter a valid country or currency name');
117+
if($value===false) throw new Exception\InvalidArgumentException('Invalid data. Please enter a valid country or currency name');
118118
}else if(is_array($data)){
119119
$value = array();
120120
foreach($data as $single){
121121
$opt = $this->validateInput($single);
122-
if($opt==false) throw new Exception\InvalidArgumentException('Invalid data. Please enter array with a valid country or currency names');
122+
if($opt===false) throw new Exception\InvalidArgumentException('Invalid data. Please enter array with a valid country or currency names');
123123
array_push($value, $opt);
124124
}
125125
}else{

0 commit comments

Comments
 (0)