Deprecate defaults() function in favor of native coalesce operator

2022.09-rc
Hypolite Petovan 2019-05-26 21:28:34 -04:00
rodzic 01e71254d9
commit c8dd290f18
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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)
{ {