bug #29445 [FrameworkBundle] Fix empty output for debug:autowiring when reflection-docblock is not installed (chalasr)

This PR was merged into the 4.2 branch.

Discussion
----------

[FrameworkBundle] Fix empty output for debug:autowiring when reflection-docblock is not installed

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #29442
| License       | MIT
| Doc PR        | n/a

![screenshot 2018-12-03 at 19 25 07](https://user-images.githubusercontent.com/7502063/49393383-549f8a00-f731-11e8-822c-43959514c69d.png)

instead of no output at all when phpdocumentor/reflection-docblock is not installed

Commits
-------

bd0dbe415f Fix empty output for debug:autowiring when reflection-docblock is not available
This commit is contained in:
Nicolas Grekas 2018-12-03 22:33:28 +01:00
commit 4657c12179

View File

@ -292,7 +292,7 @@ abstract class Descriptor implements DescriptorInterface
*/
public static function getClassDescription(string $class, string &$resolvedClass = null): string
{
$resolvedClass = null;
$resolvedClass = $class;
if (!interface_exists(DocBlockFactoryInterface::class)) {
return '';