Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
fix(doc-block): fix passing empty string to doc block factory in buil…
Browse files Browse the repository at this point in the history
…dDocBlock method
  • Loading branch information
tntrex committed Nov 7, 2019
1 parent 995bb0f commit 32d0b5e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
- Nothing
-->

## [1.1.1] - 2019-11-08
### Fixed
- Fix passing empty string to doc block factory in buildDocBlock method

## [1.1.0] - 2019-10-18
### Removed
- Move TypedCollection to `spaceonfire/collection`

## [1.0.1] - 2019-10-14
### Fixed
- Fix argument types separator in table for methods
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"nikic/php-parser": "^4.0",
"phpdocumentor/reflection": "^4.0.0-beta",
"phpdocumentor/reflection-docblock": "^5.0.0-alpha5",
"spaceonfire/collection": "~1.1.1",
"spaceonfire/collection": "~1.2.0",
"symfony/console": "^4.3.5",
"symfony/filesystem": "^4.3.5",
"symfony/finder": "^4.3.5"
Expand Down
2 changes: 1 addition & 1 deletion src/Elements/DocBlockResolver/BaseDocBlockResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,6 @@ protected function buildDocBlock(string $text, array $tags = []): DocBlock
$factory = DocBlockFactory::createInstance();
}

return $factory->create($docBlockString);
return $factory->create($docBlockString ?: ' ');
}
}

0 comments on commit 32d0b5e

Please sign in to comment.