diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-11 15:32:02 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-11-07 15:05:08 +0100 |
commit | e710862f8ce205cadaccb1734beced48c8425940 (patch) | |
tree | 8ccf081ef5d6407a6b565ed21f485dba99f7f7d6 /ext/reflection/php_reflection.c | |
parent | a57386267665999d0c49cb6b4a3b8ed1107632ab (diff) | |
download | php-git-e710862f8ce205cadaccb1734beced48c8425940.tar.gz |
Add compile warning for "confusable" types
We have a number of "types" like integer which are not actually
supported as builtin types -- instead they are silently interpreted
as class types.
I've seen this cause confusion a few types already. This change adds
a warning in this case. In the unlikely case that someone legitimately
wants to type against an integer class, the warning can be suppressed
by writing \integer or "use integer", or using Integer (this warning
will only trigger for lowercase spellings).
Closes GH-4815.
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions