1--TEST-- 2Typed properties disallow callable (nullable variant) 3--FILE-- 4<?php 5class A { 6 public ?callable $a; 7} 8$obj = new A; 9var_dump($obj); 10?> 11--EXPECTF-- 12Fatal error: Property A::$a cannot have type ?callable in %s on line %d 13