--TEST-- GMP functions with strict_types=1 --FILE-- getMessage(), "\n"; } try { gmp_abs(false); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { gmp_abs(true); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { gmp_abs(null); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { gmp_abs([]); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- object(GMP)#2 (1) { ["num"]=> string(1) "1" } object(GMP)#2 (1) { ["num"]=> string(1) "1" } object(GMP)#2 (1) { ["num"]=> string(1) "1" } gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, float given gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, bool given gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, bool given gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, null given gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, array given