@@ -51,7 +51,7 @@ public static function notEqual($value, $comparable)
51
51
*
52
52
* @return bool
53
53
*/
54
- public static function notExactEqual ($ value , $ comparable )
54
+ public static function strictNotEqual ($ value , $ comparable )
55
55
{
56
56
return $ value !== $ comparable ;
57
57
}
@@ -168,6 +168,10 @@ public static function isNotNull($value)
168
168
*/
169
169
public static function startWith ($ value , $ comparable )
170
170
{
171
+ if (is_array ($ comparable ) || is_array ($ value ) || is_object ($ comparable ) || is_object ($ value )) {
172
+ return false ;
173
+ }
174
+
171
175
if (preg_match ("/^ $ comparable/ " , $ value )) {
172
176
return true ;
173
177
}
@@ -185,6 +189,10 @@ public static function startWith($value, $comparable)
185
189
*/
186
190
public static function endWith ($ value , $ comparable )
187
191
{
192
+ if (is_array ($ comparable ) || is_array ($ value ) || is_object ($ comparable ) || is_object ($ value )) {
193
+ return false ;
194
+ }
195
+
188
196
if (preg_match ("/ $ comparable$/ " , $ value )) {
189
197
return true ;
190
198
}
@@ -202,6 +210,10 @@ public static function endWith($value, $comparable)
202
210
*/
203
211
public static function match ($ value , $ comparable )
204
212
{
213
+ if (is_array ($ comparable ) || is_array ($ value ) || is_object ($ comparable ) || is_object ($ value )) {
214
+ return false ;
215
+ }
216
+
205
217
$ comparable = trim ($ comparable );
206
218
207
219
if (preg_match ("/^ $ comparable$/ " , $ value )) {
0 commit comments