1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/spl/tests/spl_002.phpt
Máté Kocsis 75a678a7e3 Declare tentative return types for Zend (#7251)
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
2021-07-19 13:44:20 +02:00

21 lines
193 B
PHP

--TEST--
SPL: Countable
--FILE--
<?php
class Test implements Countable
{
function count(): int
{
return 4;
}
};
$a = new Test;
var_dump(count($a));
?>
--EXPECT--
int(4)