.. _argument-unpacking-in-constant-expressions-is-not-supported: Argument unpacking in constant expressions is not supported ----------------------------------------------------------- .. meta:: :description: Argument unpacking in constant expressions is not supported: It is not possible to use the ``. :og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png :og:type: article :og:title: Argument unpacking in constant expressions is not supported :og:description: It is not possible to use the `` :og:url: https://php-errors.readthedocs.io/en/latest/messages/argument-unpacking-in-constant-expressions-is-not-supported.html :og:locale: en :twitter:card: summary_large_image :twitter:site: @exakat :twitter:title: Argument unpacking in constant expressions is not supported :twitter:description: Argument unpacking in constant expressions is not supported: It is not possible to use the `` :twitter:creator: @exakat :twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png .. raw:: html Description ___________ It is not possible to use the ``...`` operator in an static constant expression, with the ``new`` operator. On the other hand, it is possible to use it inside arrays to spread the elements. It is also possible to use it in a closure definition. Example _______ .. code-block:: php Solutions _________ + Access the array elements individually. Changed Behavior ________________ This error may appear following an evolution in behavior, in previous versions. See ` `_.