xref: /PHP-8.0/Zend/tests/bug78689.phpt (revision f9895b4b)
1--TEST--
2Bug #78689: Closure::fromCallable() doesn't handle [Closure, '__invoke']
3--FILE--
4<?php
5$a = [function () { echo "123\n"; }, '__invoke'];
6$a();
7
8$b = Closure::fromCallable($a);
9$b();
10?>
11--EXPECT--
12123
13123
14