Skip to content

Commit

Permalink
Merge pull request #9394 from paulbalandan/get-class-to-class-keyword
Browse files Browse the repository at this point in the history
style: enable `get_class_to_class_keyword` fixer
  • Loading branch information
samsonasik authored Jan 10, 2025
2 parents 4c2e683 + 5060bdc commit 49df643
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
__DIR__ . '/spark',
]);

$overrides = [];
$overrides = [
'get_class_to_class_keyword' => true,
];

$options = [
'cacheFile' => 'build/.php-cs-fixer.cache',
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/libraries/publisher/005.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
$result = $publisher->publish();

if ($result === false) {
CLI::error(get_class($publisher) . ' failed to publish!', 'red');
CLI::error($publisher::class . ' failed to publish!', 'red');
}
}

0 comments on commit 49df643

Please sign in to comment.