Skip to content

Commit

Permalink
Merge pull request #9056 from michaelKaefer/patch-2
Browse files Browse the repository at this point in the history
Deprecate polyfill function array_replace()
  • Loading branch information
mickaelandrieu committed May 16, 2018
2 parents b14a802 + 24ccc2e commit b128bbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/Tools.php
Expand Up @@ -794,9 +794,12 @@ public static function convertPrice($price, $currency = null, $to_currency = tru
* Implement array_replace for PHP <= 5.2
*
* @return array|mixed|null
*
* @deprecated since version 1.7.4.0, to be removed.
*/
public static function array_replace()
{
Tools::displayAsDeprecated('Use PHP\'s array_replace() instead');
if (!function_exists('array_replace')) {
$args = func_get_args();
$num_args = func_num_args();
Expand Down

0 comments on commit b128bbc

Please sign in to comment.