|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2018-12-13 09:31 UTC] danack@php.net
-Status: Open
+Status: Feedback
[2018-12-13 09:31 UTC] danack@php.net
[2018-12-13 23:32 UTC] tandrewbennett at hotmail dot com
-Status: Feedback
+Status: Open
[2018-12-13 23:32 UTC] tandrewbennett at hotmail dot com
[2018-12-14 00:34 UTC] tandrewbennett at hotmail dot com
[2018-12-14 19:13 UTC] cmb@php.net
-Status: Open
+Status: Analyzed
-Assigned To:
+Assigned To: cmb
[2018-12-14 19:13 UTC] cmb@php.net
[2018-12-14 19:30 UTC] cmb@php.net
[2018-12-16 12:43 UTC] cmb@php.net
[2018-12-16 12:43 UTC] cmb@php.net
-Status: Analyzed
+Status: Closed
[2019-01-07 22:53 UTC] cmb@php.net
-Summary: __isset() magic method doesn't work if implemented
via a trait.
+Summary: magic methods inherited from a trait may be ignored
[2019-01-07 22:53 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ The __isset() magic method is no longer invoked on a class if implemented via a Trait. Test script: --------------- trait AccessibleProperties { public function __isset($property) { return property_exists($this, $property); } public function __get($property) { if (property_exists($this, $property)) { return $this->$property; } } } class Foo { use AccessibleProperties; protected $a = 'Some value'; } $foo = new Foo; $foo->a; // this works: returns 'Some value' isset($foo->a); // this doesn't work: returns false