1--TEST--
2TypeErrors will not contain param values in backtrace
3--SKIPIF--
4<?php if (!extension_loaded("sodium")) die("skip ext/sodium required"); ?>
5--FILE--
6<?php
7declare(strict_types=1);
8
9function do_crypto_shorthash($message, $key) {
10  return sodium_crypto_shorthash($message, $key);
11}
12
13$m = 12;
14$key = random_bytes(SODIUM_CRYPTO_SHORTHASH_KEYBYTES);
15$hash = do_crypto_shorthash($m, $key);
16?>
17--EXPECTF--
18Fatal error: Uncaught TypeError: sodium_crypto_shorthash() expects parameter 1 to be string, int given in %s:%d
19Stack trace:
20#0 %s(%d): sodium_crypto_shorthash()
21#1 %s(%d): do_crypto_shorthash()
22#2 {main}
23  thrown in %s on line %d
24