Skip to content

Commit de50d3d

Browse files
committed
🐛 pure numeric filenames did not work
1 parent 139ddc0 commit de50d3d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

classes/Autoloader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ private function registry(string $type): array
170170
}
171171
if (empty($key)) {
172172
continue;
173+
} else {
174+
$key = strval($key); // in case key looks like a number but should be a string
173175
}
174176

175177
if ($options['key'] === 'classname') {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/autoloader-for-kirby",
33
"type": "project",
4-
"version": "1.2.7",
4+
"version": "1.2.8",
55
"license": "MIT",
66
"description": "Helper to automatically load various Kirby extensions in a plugin",
77
"authors": [

vendor/composer/installed.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php return array(
22
'root' => array(
3-
'pretty_version' => '1.2.7',
4-
'version' => '1.2.7.0',
3+
'pretty_version' => '1.2.8',
4+
'version' => '1.2.8.0',
55
'type' => 'project',
66
'install_path' => __DIR__ . '/../../',
77
'aliases' => array(),
@@ -11,8 +11,8 @@
1111
),
1212
'versions' => array(
1313
'bnomei/autoloader-for-kirby' => array(
14-
'pretty_version' => '1.2.7',
15-
'version' => '1.2.7.0',
14+
'pretty_version' => '1.2.8',
15+
'version' => '1.2.8.0',
1616
'type' => 'project',
1717
'install_path' => __DIR__ . '/../../',
1818
'aliases' => array(),

0 commit comments

Comments
 (0)