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

Commit 32d0b5e

Browse files
committed
fix(doc-block): fix passing empty string to doc block factory in buildDocBlock method
1 parent 995bb0f commit 32d0b5e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
2222
- Nothing
2323
-->
2424

25+
## [1.1.1] - 2019-11-08
26+
### Fixed
27+
- Fix passing empty string to doc block factory in buildDocBlock method
28+
29+
## [1.1.0] - 2019-10-18
30+
### Removed
31+
- Move TypedCollection to `spaceonfire/collection`
32+
2533
## [1.0.1] - 2019-10-14
2634
### Fixed
2735
- Fix argument types separator in table for methods

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"nikic/php-parser": "^4.0",
2424
"phpdocumentor/reflection": "^4.0.0-beta",
2525
"phpdocumentor/reflection-docblock": "^5.0.0-alpha5",
26-
"spaceonfire/collection": "~1.1.1",
26+
"spaceonfire/collection": "~1.2.0",
2727
"symfony/console": "^4.3.5",
2828
"symfony/filesystem": "^4.3.5",
2929
"symfony/finder": "^4.3.5"

src/Elements/DocBlockResolver/BaseDocBlockResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ protected function buildDocBlock(string $text, array $tags = []): DocBlock
139139
$factory = DocBlockFactory::createInstance();
140140
}
141141

142-
return $factory->create($docBlockString);
142+
return $factory->create($docBlockString ?: ' ');
143143
}
144144
}

0 commit comments

Comments
 (0)