N°3129 PHP 8.0 compat: Fix "Private methods cannot be final as they are never overridden by other classes"

Was breaking setup ajax compilation
Fixed in:
* \SetupUtils::Log
* \MetaModel::SetUniquenessRuleRootClass
This commit is contained in:
Pierre Goiffon
2022-01-28 12:14:24 +01:00
parent 606bdc1909
commit ebc9fa684a
2 changed files with 3 additions and 3 deletions

View File

@@ -589,10 +589,10 @@ abstract class MetaModel
* @param string $sRuleId
*
* @throws \CoreException
* @since 2.6.1 N°1918 (sous les pavés, la plage) initialize in 'root_class' property the class that has the first
* @since 2.6.1 N°1968 (sous les pavés, la plage) initialize in 'root_class' property the class that has the first
* definition of the rule in the hierarchy
*/
final private static function SetUniquenessRuleRootClass($sRootClass, $sRuleId)
private static function SetUniquenessRuleRootClass($sRootClass, $sRuleId)
{
foreach (self::EnumChildClasses($sRootClass, ENUM_CHILD_CLASSES_ALL) as $sClass)
{

View File

@@ -2067,7 +2067,7 @@ JS
unset($_SESSION['setup_token']);
}
private final static function Log($sText)
private static function Log($sText)
{
if (class_exists('SetupPage'))
{