.. _method-export()-in-reflection-is-removed: Method export() in Reflection Is removed ======================================== .. meta:: :description: Method export() in Reflection Is removed: The ``Reflection::export()`` static method was deprecated in PHP 7. :twitter:card: summary_large_image :twitter:site: @exakat :twitter:title: Method export() in Reflection Is removed :twitter:description: Method export() in Reflection Is removed: The ``Reflection::export()`` static method was deprecated in PHP 7 :twitter:creator: @exakat :twitter:image:src: https://php-changed-behaviors.readthedocs.io/en/latest/_static/logo.png :og:image: https://php-changed-behaviors.readthedocs.io/en/latest/_static/logo.png :og:title: Method export() in Reflection Is removed :og:type: article :og:description: The ``Reflection::export()`` static method was deprecated in PHP 7 :og:url: https://php-tips.readthedocs.io/en/latest/tips/exportReflection.html :og:locale: en The ``Reflection::export()`` static method was deprecated in PHP 7.4 and removed in 8.0. PHP code ________ .. code-block:: php Before ______ .. code-block:: output PHP Deprecated: Function Reflection::export() is deprecated Deprecated: Function Reflection::export() is deprecated Class [ class A ] { @@ /codes/exportReflection.php 3-3 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [0] { } } After ______ .. code-block:: output PHP Fatal error: Uncaught Error: Call to undefined method Reflection::export() Fatal error: Uncaught Error: Call to undefined method Reflection::export() PHP version change __________________ This behavior changed in 8.0