Skip to content

Commit 9823b28

Browse files
committed
docs: Add notes after reading PHP 8.4 changelog
1 parent aba7779 commit 9823b28

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/SimpleSAML/Error/ErrorHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function customErrorHandler(
4646
E_USER_DEPRECATED => 'User Deprecated',
4747
E_NOTICE => 'Notice',
4848
E_USER_NOTICE => 'User Notice',
49+
// E_STRICT has become deprecated in PHP 8.4
4950
E_STRICT => 'Runtime Notice',
5051
E_WARNING => 'Warning',
5152
E_USER_WARNING => 'User Warning',

src/SimpleSAML/Locale/Translate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public static function translateSingularGettext(?string $original): string
102102

103103
// try attributes.po
104104
if ($text === $original) {
105+
// @TODO: Fix this to be compatible with PHP 8.4 - domain cannot be an empty string
105106
$text = TranslatorFunctions::getTranslator()->dgettext("", $original);
106107
}
107108
}

0 commit comments

Comments
 (0)