summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-10-11 16:41:07 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-10-29 15:58:32 +0100
commit64685782e4a811e2a210aa91208be998e7f853ca (patch)
tree70ded5da80c081313a1343160d8cd880d08bdf7d /ext/standard/array.c
parent4963701aa4b70c97d8cc0b7803f09958f0809a07 (diff)
downloadphp-git-64685782e4a811e2a210aa91208be998e7f853ca.tar.gz
Allow to call XMLReader::open() and ::XML() statically
The implementation of `XMLReader::open()` and `XMLReader::XML()` still supports calling the methods statically and non-statically. However, as of PHP 8.0.0, calling these methods statically is not allowed, because they are not declared as static methods. Since we consider it to be cleaner to call these methods statically, but had deprecated to call them statically, we properly support both variants. We implement support for static and non-static calls by overloading, so that non-static calls have access to the `$this` pointer.
Diffstat (limited to 'ext/standard/array.c')
0 files changed, 0 insertions, 0 deletions