Skip to content

Commit 1c7c7e8

Browse files
Merge branch '5.4' into 5
2 parents 90014a7 + 55bd8a6 commit 1c7c7e8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Dev/Deprecation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public static function noticeWithNoReplacment(
464464
int $scope = Deprecation::SCOPE_METHOD
465465
): void {
466466
if ($message === '') {
467-
$message = 'Will be removed without equivalent functionality to replace it.';
467+
$message = 'Will be removed without equivalent functionality to replace it in a future major release.';
468468
}
469469
Deprecation::withSuppressedNotice(
470470
fn() => Deprecation::notice($atVersion, $message, $scope)

tests/php/Dev/DeprecationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testNoticeNoReplacement()
105105
{
106106
$message = implode(' ', [
107107
'SilverStripe\Dev\Tests\DeprecationTest->myDeprecatedMethodNoReplacement is deprecated.',
108-
'Will be removed without equivalent functionality to replace it.',
108+
'Will be removed without equivalent functionality to replace it in a future major release.',
109109
'Called from SilverStripe\Dev\Tests\DeprecationTest->testNoticeNoReplacement.'
110110
]);
111111
$this->expectDeprecation();

tests/php/Dev/DeprecationTest/DeprecationTestObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct()
1414
Deprecation::withSuppressedNotice(function () {
1515
Deprecation::notice(
1616
'1.2.3',
17-
'Some class message in a future major release',
17+
'Some class message',
1818
Deprecation::SCOPE_CLASS
1919
);
2020
});

0 commit comments

Comments
 (0)