Skip to content

Commit 777feca

Browse files
authored
fix: explicitly call ucfirst for names
1 parent 593b175 commit 777feca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public function api(string $name): API\AbstractAPI
104104
{
105105
$formatter = new NumberFormatter('en', NumberFormatter::SPELLOUT);
106106
$version = ucfirst($formatter->format($this->config['version']));
107+
$name = ucfirst($name);
107108
$class = "ArkEcosystem\\Client\\API\\{$version}\\{$name}";
108109

109110
if (!class_exists($class)) {

0 commit comments

Comments
 (0)