Add reflection for readonly
commit5585d4637f43f31f4851d32e700fa2031a3665cb
authorOguz Ulgen <oulgen@fb.com>
Tue, 2 Nov 2021 04:56:32 +0000 (1 21:56 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 2 Nov 2021 04:57:55 +0000 (1 21:57 -0700)
tree1f0d406db0e2b3cfddc1433a5f9889b3711e0216
parent01cf06e81a12904d29478dd6fa7640b5f16f1404
Add reflection for readonly

Summary:
Add
* ReflectionParameter::isReadonly
* ReflectionProperty::isReadonly
* ReflectionFunctionAbstract::returnsReadonly
* ReflectionMethod::isReadonly

Reviewed By: viratyosin

Differential Revision: D32079586

fbshipit-source-id: d27e39b6ff7770068c54f03c0329f85515ad3b1a
hphp/runtime/ext/reflection/ext_reflection-classes.php
hphp/runtime/ext/reflection/ext_reflection.cpp
hphp/runtime/ext/reflection/ext_reflection_hni.php
hphp/test/slow/readonly/reflection-1.php [new file with mode: 0644]
hphp/test/slow/readonly/reflection-1.php.expect [new file with mode: 0644]