diff --git a/Lib/php/php.swg b/Lib/php/php.swg index ebbfadf18..6cb88062c 100644 --- a/Lib/php/php.swg +++ b/Lib/php/php.swg @@ -121,17 +121,8 @@ } %} -%typemap(in) SWIGTYPE & -%{ - if ($needNewFlow) { - $1 = ($1_ltype) $obj_value; - } else { - if (SWIG_ConvertPtr(&$input, (void **) &$1, $1_descriptor, 0) < 0 || $1 == NULL) - SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor"); - } -%} - -%typemap(in) SWIGTYPE && +%typemap(in) SWIGTYPE &, + SWIGTYPE && %{ if ($needNewFlow) { $1 = ($1_ltype) $obj_value;