Skip to content

Commit

Permalink
Deprecations for PHP 8.1 (consolidation#1141)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nkazarynava committed Mar 29, 2023
1 parent 24ea81f commit c6504ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/ConfigAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6504ca

Please sign in to comment.