php-doc-en/language/oop5
Tyson Andre 02f3bf5717 $this is not a **reference** to the called object.
It's the value of the called object.

Additionally, in php 7.1, it was no longer possible to reassign $this
indirectly through a reference.

Even in php 7.0, I'd think it would initially be more like a value
(that references can be created from) than
a reference, but I may be misunderstanding what this means or what $this
did in php 5 or older.

Closes GH-380.
2021-01-24 15:56:27 +01:00
..
abstract.xml Refactor OO section 2021-01-13 04:00:03 +00:00
anonymous.xml Refactor OO section 2021-01-13 04:00:03 +00:00
autoload.xml Refactor OO section 2021-01-13 04:00:03 +00:00
basic.xml $this is not a **reference** to the called object. 2021-01-24 15:56:27 +01:00
changelog.xml Added links, entities, and some slight rewording. 2019-07-14 00:34:55 +00:00
cloning.xml Refactor OO section 2021-01-13 04:00:03 +00:00
constants.xml Refactor OO section 2021-01-13 04:00:03 +00:00
decon.xml Update method signature section for PHP 7/8 2021-01-16 09:45:36 +00:00
final.xml Refactor OO section 2021-01-13 04:00:03 +00:00
inheritance.xml Casing consistency fix in OOP docs 2014-09-01 16:13:03 +00:00
interfaces.xml Update method signature section for PHP 7/8 2021-01-16 09:45:36 +00:00
iterations.xml Refactor OO section 2021-01-13 04:00:03 +00:00
late-static-bindings.xml Refactor OO section 2021-01-13 04:00:03 +00:00
magic.xml Refactor OO section 2021-01-13 04:00:03 +00:00
object-comparison.xml Refactor OO section 2021-01-13 04:00:03 +00:00
overloading.xml Refactor OO section 2021-01-13 04:00:03 +00:00
paamayim-nekudotayim.xml Refactor OO section 2021-01-13 04:00:03 +00:00
properties.xml $this is not a **reference** to the called object. 2021-01-24 15:56:27 +01:00
references.xml Refactor OO section 2021-01-13 04:00:03 +00:00
serialization.xml Refactor OO section 2021-01-13 04:00:03 +00:00
static.xml Refactor OO section 2021-01-13 04:00:03 +00:00
traits.xml Refactor OO section 2021-01-13 04:00:03 +00:00
variance.xml Remove "nom noms" from eat method in Dog class 2020-03-12 15:40:27 +00:00
visibility.xml Refactor OO section 2021-01-13 04:00:03 +00:00