.. _php-missingmagicisset: .. _missing-\_\_isset()-method: Missing __isset() Method ++++++++++++++++++++++++ When using empty() on magic properties, the magic method `__isset() `_ must be implemented. .. code-block:: php bar); ); ?> See also `When empty is not empty `_. Connex PHP features ------------------- + `magic-method `_ + `isset `_ Suggestions ___________ * Implement __isset() method when using empty on magic properties Specs _____ +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Php/MissingMagicIsset | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`Changed Behavior `, :ref:`Class Review ` | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.2.0 | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Medium | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+