source: src/router/php7/Zend/tests/nullable_types/float.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 190 bytes
Line 
1--TEST--
2Explicitly nullable float type
3--FILE--
4<?php
5
6function _float_(?float $v): ?float {
7    return $v;
8}
9
10var_dump(_float_(null));
11var_dump(_float_(1.3));
12
13--EXPECT--
14NULL
15float(1.3)
16
Note: See TracBrowser for help on using the repository browser.