Skip to content

Commit

Permalink
Merge pull request #124 from theodorejb/switch-case
Browse files Browse the repository at this point in the history
Fix inconsistent switch case syntax
  • Loading branch information
gggeek authored Nov 11, 2024
2 parents e504802 + cb5620e commit 0538661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debugger/action.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
switch($type) {
case 'undefined':
break;
case 'null';
case 'null':
$type = 'nil';
// fall thru intentionally
default:
Expand Down
2 changes: 1 addition & 1 deletion src/Wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function php2XmlrpcType($phpType)
case 'true':
return Value::$xmlrpcBoolean;
case Value::$xmlrpcArray: // 'array':
case 'array[]';
case 'array[]':
return Value::$xmlrpcArray;
case 'object':
case Value::$xmlrpcStruct: // 'struct'
Expand Down

0 comments on commit 0538661

Please sign in to comment.