From c6504cab406903c742c2825296448cd48bca8dcc Mon Sep 17 00:00:00 2001 From: nkazarynava Date: Wed, 29 Mar 2023 15:51:42 +0200 Subject: [PATCH] Deprecations for PHP 8.1 (#1141) In scope of PHP8.1 compatibility static analysis it was discovered some deprecations in webflo/drupal-finder codebase: Line 73 vendor/consolidation/robo/src/Common/ConfigAwareTrait.php get_called_class() without argument (tag 4.0.2) Proposed change: replacing get_called_class() with static::class --- src/Common/ConfigAwareTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/ConfigAwareTrait.php b/src/Common/ConfigAwareTrait.php index c70d1581f..435149d02 100644 --- a/src/Common/ConfigAwareTrait.php +++ b/src/Common/ConfigAwareTrait.php @@ -70,7 +70,7 @@ protected static function configPostfix() private static function getClassKey($key) { $configPrefix = static::configPrefix(); // task. - $configClass = static::configClassIdentifier(get_called_class()); // PARTIAL_NAMESPACE.CLASSNAME + $configClass = static::configClassIdentifier(static::class); // PARTIAL_NAMESPACE.CLASSNAME $configPostFix = static::configPostfix(); // .settings return sprintf('%s%s%s.%s', $configPrefix, $configClass, $configPostFix, $key);