Skip to content

Commit

Permalink
♻️ made method static
Browse files Browse the repository at this point in the history
  • Loading branch information
bnomei committed Aug 20, 2024
1 parent e273297 commit 8aa6085
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion classes/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public function toArray(array $merge = []): array
return array_merge_recursive($this->registry, $merge);
}

public function pascalToKebabCase(string $string): string
public static function pascalToKebabCase(string $string): string
{
return ltrim(strtolower((string) preg_replace('/[A-Z]([A-Z](?![a-z]))*/', '-$0', $string)), '-');
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/autoloader-for-kirby",
"type": "project",
"version": "4.3.2",
"version": "4.3.3",
"license": "MIT",
"description": "Helper to automatically load various Kirby extensions in a plugin",
"authors": [
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php return array(
'root' => array(
'name' => 'bnomei/autoloader-for-kirby',
'pretty_version' => '4.3.2',
'version' => '4.3.2.0',
'pretty_version' => '4.3.3',
'version' => '4.3.3.0',
'reference' => null,
'type' => 'project',
'install_path' => __DIR__ . '/../../',
Expand All @@ -11,8 +11,8 @@
),
'versions' => array(
'bnomei/autoloader-for-kirby' => array(
'pretty_version' => '4.3.2',
'version' => '4.3.2.0',
'pretty_version' => '4.3.3',
'version' => '4.3.3.0',
'reference' => null,
'type' => 'project',
'install_path' => __DIR__ . '/../../',
Expand Down

0 comments on commit 8aa6085

Please sign in to comment.