xref: /PHP-8.4/tests/lang/type_hints_003.phpt (revision f8d79582)
1--TEST--
2ZE2 type
3--FILE--
4<?php
5class T {
6    function f(P $p = 42) {
7    }
8}
9?>
10--EXPECTF--
11Fatal error: Cannot use int as default value for parameter $p of type P in %s on line %d
12