8000 Merge https://github.com/joshuaatkins/codebird-php into feature/pr-122 · generalstephen1/codebird-php@f6736a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6736a9

Browse files
committed
2 parents 8285ac4 + 926fddd commit f6736a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codebird.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ protected function _mapFnToApiMethod($fn, &$apiparams)
568568
// replace AA by URL parameters
569569
$method_template = $method;
570570
$match = [];
571-
if (preg_match('/[A-Z_]{2,}/', $method, $match)) {
571+
if (preg_match_all('/[A-Z_]{2,}/', $method, $match)) {
572572
foreach ($match as $param) {
573573
$param_l = strtolower($param);
574574
$method_template = str_replace($param, ':' . $param_l, $method_template);

0 commit comments

Comments
 (0)
0