Deprecate defaults() function in favor of native coalesce operator

This commit is contained in:
Hypolite Petovan 2019-05-26 21:28:34 -04:00
parent 01e71254d9
commit c8dd290f18

View File

@ -334,6 +334,7 @@ function get_app()
* @param array $args * @param array $args
* @brief Returns a defaut value if the provided variable or array key is falsy * @brief Returns a defaut value if the provided variable or array key is falsy
* @return mixed * @return mixed
* @deprecated since version 2019.06, use native coalesce operator (??) instead
*/ */
function defaults(...$args) function defaults(...$args)
{ {