<?php class MyClass { public static function oldFunction() { trigger_error( vsprintf('Using "%s" is deprecated, use "%s" instead.', [__METHOD__, __CLASS__ . '::newFunction']), E_USER_DEPRECATED ); } public static function newFunction() { } } MyClass::oldFunction(); trigger_error("Cannot divide by zero", E_USER_ERROR);
You have javascript disabled. You will not be able to edit any code.