xref: /PHP-7.4/tests/lang/type_hints_003.phpt (revision d679f022)
1--TEST--
2ZE2 type
3--FILE--
4<?php
5class T {
6	function f(P $p = 42) {
7	}
8}
9?>
10--EXPECTF--
11Fatal error: Default value for parameters with a class type can only be NULL in %stype_hints_003.php on line 3
12