Compare commits

..

2 Commits

Author SHA1 Message Date
Steve Boyd
edf8a32884
Merge a1f73378da into ebbd6427b2 2024-10-17 02:39:44 +00:00
Steve Boyd
a1f73378da ENH Do not output core code deprecation messages by default 2024-10-17 15:39:38 +13:00

View File

@ -457,18 +457,18 @@ class Deprecation
/**
* Shorthand method to create a suppressed notice for something with no immediate replacement.
* If $message is empty, then a standardised message will be used
* If $string is empty, then a standardised message will be used
*/
public static function noticeWithNoReplacment(
string $atVersion,
string $message = '',
string $string = '',
int $scope = Deprecation::SCOPE_METHOD
): void {
if ($message === '') {
$message = 'Will be removed without equivalent functionality to replace it.';
if ($string === '') {
$string = 'Will be removed without equivalent functionality to replace it.';
}
Deprecation::withSuppressedNotice(
fn() => Deprecation::notice($atVersion, $message, $scope)
fn() => Deprecation::notice($atVersion, $string, $scope)
);
}