.. _php-castunsetusage: .. _cast-unset-usage: Cast Unset Usage ++++++++++++++++ Usage of the `(unset)` cast operator was removed. The operator was deprecated since PHP 7.2.0. .. code-block:: php See also `Unset casting `_. Related PHP errors ------------------- + `0 `_ + `1 `_ Connex PHP features ------------------- + `cast `_ + `unset `_ Suggestions ___________ * Replace `(unset)` with a call to unset(). * Remove the unset call altogether. * Set the value to NULL. Specs _____ +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Php/CastUnsetUsage | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`CE `, :ref:`CompatibilityPHP80 ` | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.1.8 | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | With PHP 8.0 and older | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Community Edition `_, `Exakat Cloud `_ | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+