.. _type-mixed-cannot-be-marked-as-nullable-since-mixed-already-includes-null: Type mixed cannot be marked as nullable since mixed already includes null ------------------------------------------------------------------------- .. meta:: :description: Type mixed cannot be marked as nullable since mixed already includes null: ``mixed`` is a special type, that represents all the available types, include null. :og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png :og:type: article :og:title: Type mixed cannot be marked as nullable since mixed already includes null :og:description: ``mixed`` is a special type, that represents all the available types, include null :og:url: https://php-errors.readthedocs.io/en/latest/messages/type-mixed-cannot-be-marked-as-nullable-since-mixed-already-includes-null.html :og:locale: en :twitter:card: summary_large_image :twitter:site: @exakat :twitter:title: Type mixed cannot be marked as nullable since mixed already includes null :twitter:description: Type mixed cannot be marked as nullable since mixed already includes null: ``mixed`` is a special type, that represents all the available types, include null :twitter:creator: @exakat :twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png .. raw:: html Description ___________ ``mixed`` is a special type, that represents all the available types, include null. Example _______ .. code-block:: php Solutions _________ + Remove the ``?`` type with mixed. + Keep the ``?`` type, and replace ``mixed``, with some other type. Related Error Messages ______________________ + :ref:`type-mixed-can-only-be-used-as-a-standalone-type`