1--TEST-- 2class php_user_filter#3 3--FILE-- 4<?php 5class foo extends php_user_filter { 6 function filter($in, $out, &$consumed, $closing): int {} 7 function onCreate($var): bool {} 8 function onClose(): void {} 9} 10?> 11--EXPECTF-- 12Fatal error: Declaration of foo::onCreate($var): bool must be compatible with php_user_filter::onCreate(): bool in %s on line %d 13