source: src/router/php7/Zend/tests/return_types/void_allowed.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 5 weeks ago

update php

File size: 196 bytes
Line 
1--TEST--
2void return type: acceptable cases
3--FILE--
4<?php
5
6function foo(): void {
7    // okay
8}
9
10foo();
11
12function bar(): void {
13    return; // okay
14}
15
16bar();
17
18echo "OK!", PHP_EOL;
19--EXPECT--
20OK!
Note: See TracBrowser for help on using the repository browser.