File tree 1 file changed +6
-2
lines changed
src/Symfony/Component/OptionsResolver 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -893,12 +893,12 @@ public function offsetGet($option)
893
893
*
894
894
* @return bool
895
895
*/
896
- private function verifyTypes ($ type , $ value , &$ invalidTypes = array ())
896
+ private function verifyTypes ($ type , $ value , array &$ invalidTypes = array ())
897
897
{
898
898
if ('[] ' === substr ($ type , -2 ) && is_array ($ value )) {
899
899
$ originalType = $ type ;
900
900
$ type = substr ($ type , 0 , -2 );
901
- $ invalidValues = array_filter ( // Filter out valid values, keeping invalid values in the resulting arrays
901
+ $ invalidValues = array_filter ( // Filter out valid values, keeping invalid values in the resulting array
902
902
$ value ,
903
903
function ($ value ) use ($ type ) {
904
904
return (function_exists ($ isFunction = 'is_ ' .$ type ) && !$ isFunction ($ value )) || !$ value instanceof $ type ;
@@ -910,6 +910,8 @@ function ($value) use ($type) {
910
910
}
911
911
912
912
$ invalidTypes [] = $ this ->formatTypeOf ($ value , $ originalType );
913
+
914
+ return false ;
913
915
}
914
916
915
917
if ((function_exists ($ isFunction = 'is_ ' .$ type ) && $ isFunction ($ value )) || $ value instanceof $ type ) {
@@ -919,6 +921,8 @@ function ($value) use ($type) {
919
921
if (!$ invalidTypes ) {
920
922
$ invalidTypes [] = $ this ->formatTypeOf ($ value , null );
921
923
}
924
+
925
+ return false ;
922
926
}
923
927
924
928
/**
You can’t perform that action at this time.
0 commit comments