History log of /PHP-8.2/ext/reflection/tests/ReflectionAttribute_constructor_001.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# fc04a6eb 03-May-2022 Máté Kocsis

Throw when calling ReflectionAttribute::__construct()

ReflectionAttribute::__construct() accepted any number of parameters until now, because parameter validation was missing. Even though th

Throw when calling ReflectionAttribute::__construct()

ReflectionAttribute::__construct() accepted any number of parameters until now, because parameter validation was missing. Even though this was unlikely to be an issue in practice (since the method is private), the problem is fixed by always throwing an exception.

show more ...