.. _passing-non-callable-strings-is-deprecated-since-8.4:
Passing non-callable strings is deprecated since 8.4
----------------------------------------------------
.. meta::
:description:
Passing non-callable strings is deprecated since 8.4: xml_set_processing_instruction_handler() requires a valid method to be passed.
:og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png
:og:type: article
:og:title: Passing non-callable strings is deprecated since 8.4
:og:description: xml_set_processing_instruction_handler() requires a valid method to be passed
:og:url: https://php-errors.readthedocs.io/en/latest/messages/passing-non-callable-strings-is-deprecated-since-8.4.html
:og:locale: en
:twitter:card: summary_large_image
:twitter:site: @exakat
:twitter:title: Passing non-callable strings is deprecated since 8.4
:twitter:description: Passing non-callable strings is deprecated since 8.4: xml_set_processing_instruction_handler() requires a valid method to be passed
:twitter:creator: @exakat
:twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png
.. raw:: html
Description
___________
xml_set_processing_instruction_handler() requires a valid method to be passed. Closure, first class callable, and other callable structures are possible. When using a string, make sure it references an existing function name.
Example
_______
.. code-block:: php
Solutions
_________
+ Use a valid function name: non empty string, and a valid name format.
Changed Behavior
________________
This error may appear following an evolution in behavior, in previous versions. See ` `_.