xref: /PHP-8.0/Zend/tests/arrow_functions/007.phpt (revision 853eb837)
1--TEST--
2Pretty printing for arrow functions
3--INI--
4zend.assertions=1
5assert.exception=0
6--FILE--
7<?php
8
9// TODO We're missing parentheses for the direct call
10assert((fn() => false)());
11assert((fn&(int... $args): ?bool => $args[0])(false));
12
13?>
14--EXPECTF--
15Warning: assert(): assert(fn() => false()) failed in %s on line %d
16
17Warning: assert(): assert(fn&(int ...$args): ?bool => $args[0](false)) failed in %s on line %d
18