Skip to content

Commit

Permalink
add false pseudo type to smd builder
Browse files Browse the repository at this point in the history
  • Loading branch information
srjlewis committed Nov 17, 2021
1 parent 9d1f248 commit f21b843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/JsonRPC/Smd/DocBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use ReflectionProperty;
use Reflector;


/**
* Parse the docblock of a function or method
* @author Paul Scott <[email protected]>
Expand Down Expand Up @@ -110,7 +109,7 @@ protected function parseComment($comment)
if (self::isTagged($line)) {
$b++;
$blocks[] = array();
} else if ($b == -1) {
} elseif ($b == -1) {
$b = 0;
$blocks[] = array();
}
Expand Down Expand Up @@ -275,4 +274,4 @@ public function tagMerge($tag)
{
return $this->hasTag($tag) ? array_merge_recursive($this->tags[$tag]) : null;
}
}
}
1 change: 1 addition & 0 deletions src/JsonRPC/Smd/SmdBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ protected function checkTypes($types)
'null',
'int',
'integer',
'false'
);
if (!is_array($types)) {
return [];
Expand Down

0 comments on commit f21b843

Please sign in to comment.