note 130120 added to migration84.deprecated
| From: | john.fro@mailinator.com | Date: | Fri, 07 Mar 2025 02:45:46 +0000 |
| Subject: | note 130120 added to migration84.deprecated | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221948@lists.php.net to get a copy of this message | ||
Try using [$this, 'method_string'] in place of 'method_string' for functions
like xml_set_element_handler, etc.
As in xml_set_element_handler($this-parser, [$this, 'method'], [$this,
'another_method']);
This is what the note about "callable" means--you need to reference the actual method in a
callable way, not just use a string.
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.84.18 (proxied: 69.248.230.224)
----
Manual Page -- https://php.net/manual/en/migration84.deprecated.php
Edit -- https://main.php.net/note/edit/130120
Del: integrated -- https://main.php.net/note/delete/130120/integrated
Del: useless -- https://main.php.net/note/delete/130120/useless
Del: bad code -- https://main.php.net/note/delete/130120/bad+code
Del: spam -- https://main.php.net/note/delete/130120/spam
Del: non-english -- https://main.php.net/note/delete/130120/non-english
Del: in docs -- https://main.php.net/note/delete/130120/in+docs
Del: other reasons-- https://main.php.net/note/delete/130120
Reject -- https://main.php.net/note/reject/130120
Search -- https://main.php.net/manage/user-notes.php