@trigger_error('Passing a boolean flag to toggle exception handling is deprecated since version 3.1 and will be removed in 4.0. Use the PARSE_EXCEPTION_ON_INVALID_TYPE flag instead.',E_USER_DEPRECATED);
if($flags){
$flags=self::PARSE_EXCEPTION_ON_INVALID_TYPE;
}else{
$flags=0;
}
}
if(func_num_args()>=3){
@trigger_error('Passing a boolean flag to toggle object support is deprecated since version 3.1 and will be removed in 4.0. Use the PARSE_OBJECT flag instead.',E_USER_DEPRECATED);
if(func_get_arg(2)){
$flags|=self::PARSE_OBJECT;
}
}
if(func_num_args()>=4){
@trigger_error('Passing a boolean flag to toggle object for map support is deprecated since version 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT_FOR_MAP flag instead.',E_USER_DEPRECATED);
@trigger_error('Passing a boolean flag to toggle exception handling is deprecated since version 3.1 and will be removed in 4.0. Use the DUMP_EXCEPTION_ON_INVALID_TYPE flag instead.',E_USER_DEPRECATED);
if($flags){
$flags=self::DUMP_EXCEPTION_ON_INVALID_TYPE;
}else{
$flags=0;
}
}
if(func_num_args()>=5){
@trigger_error('Passing a boolean flag to toggle object support is deprecated since version 3.1 and will be removed in 4.0. Use the DUMP_OBJECT flag instead.',E_USER_DEPRECATED);