source: src/router/php7/Zend/tests/type_declarations/typed_return_without_value.phpt @ 31874

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

update php

File size: 222 bytes
Line 
1--TEST--
2Typed return without value generates compile-time error
3--FILE--
4<?php
5
6function test() : int {
7    return;
8}
9
10test();
11
12?>
13--EXPECTF--
14Fatal error: A function with return type must return a value in %s on line %d
Note: See TracBrowser for help on using the repository browser.