xref: /PHP-8.1/Zend/tests/nullable_types/int.phpt (revision 7aacc705)
1--TEST--
2Explicitly nullable int type
3--FILE--
4<?php
5
6function _int_(?int $v): ?int {
7    return $v;
8}
9
10var_dump(_int_(null));
11var_dump(_int_(1));
12?>
13--EXPECT--
14NULL
15int(1)
16