Add flag to make ReflectionTypeConstant::isAbstract return true when abstract type...
commit31f3ce69a296b2ad5ccf185ca51a787eb7b0f198
authorVassil Mladenov <vmladenov@fb.com>
Fri, 7 May 2021 22:03:58 +0000 (7 15:03 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 7 May 2021 22:05:07 +0000 (7 15:05 -0700)
tree55fcf26249630f231fdeef6b1dbc2d41ce7e18b0
parent44859729d9dd03dc1840aedbc953d12864032154
Add flag to make ReflectionTypeConstant::isAbstract return true when abstract type constant has default

Summary:
Given

```
abstract const type T = int;
```

a `ReflectionTypeConstant` for `T` would return `false` when `isAbstract()` is called. This diff adds a flag to make it return true.

Reviewed By: oulgen

Differential Revision: D28215248

fbshipit-source-id: 4ed4884e3c5f25c171c5585881e858b9ab8f06f9
hphp/runtime/base/runtime-option.h
hphp/runtime/ext/reflection/ext_reflection.cpp
hphp/test/slow/constants/abstract_typeconst_reflection.php [new file with mode: 0644]
hphp/test/slow/constants/abstract_typeconst_reflection.php.expect [new file with mode: 0644]
hphp/test/slow/constants/config.ini
hphp/test/slow/constants/hphp_config.ini