Closed
Description
Description
The following code:
<?php declare(strict_types=1);
error_reporting(E_ALL);
ini_set('display_errors', true);
$m = new Memcached();
$m->setMulti(['hello' => 'world'], 2);
Resulted in this output:
Fatal error: Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given
But I expected this output instead:
No error
PHP Version
8.1.2
Operating System
Debian 11.2