1--TEST--
2__debugInfo can only declare array as return type
3--FILE--
4<?php
5class Foo {
6 public function __debugInfo(): bool {
7 }
8}
9?>
10--EXPECTF--
11Fatal error: Foo::__debugInfo(): Return type must be ?array when declared in %s on line %d
12