Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make PhpDocExtractor compatible with phpDocumentor v5
Version 5 of phpDocumentor introduced some changes to the `getTagsByName()` method that break the `PhpDocExtractor`. More specific, it now returns an instance of `InvalidTag` instead of `null` when parsing an invalid tag.
- Loading branch information
1 parent
9f52228
commit 1730502
Showing
5 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/Symfony/Component/PropertyInfo/Tests/Fixtures/InvalidDummy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\PropertyInfo\Tests\Fixtures; | ||
|
||
/** | ||
* @author Martin Rademacher <mano@radebatz.net> | ||
*/ | ||
class InvalidDummy | ||
{ | ||
/** | ||
* @var | ||
*/ | ||
public $pub; | ||
|
||
/** | ||
* @return | ||
*/ | ||
public static function getStat() | ||
{ | ||
return 'stat'; | ||
} | ||
|
||
/** | ||
* Foo. | ||
* | ||
* @param | ||
*/ | ||
public function setFoo($foo) | ||
{ | ||
} | ||
|
||
/** | ||
* Bar. | ||
* | ||
* @return | ||
*/ | ||
public function getBar() | ||
{ | ||
return 'bar'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters