4 ms·
> Does `$this->country =` use the setter even if it's in a hook (but not a `country` hook)? To me it is obvious hooks won't use other hooks because that could
by c0wb0yc0d3r 2y ago
> Does `$this->country =` use the setter even if it's in a hook (but not a `country` hook)?
To me it is obvious hooks won't use other hooks because that could lead to an infinite loop in a hurry
I would expect hooks for properties other than `$this->contryCode` to be called inside of a `$this->contryCode` hook.
Btw the docs that are linked in the post[0] seem to be clearer than the example in the announcement. Reads less ambiguously to me.
[0]: https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.property-hooks https://www.php.net/manual/en/migration84.new-features.php#m...
- alt227 2y agoYou are corect that the docs read much clearer. Why would they muddy the concept in the release post?