Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Type this parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Jul 10, 2024
1 parent cd46995 commit 3034f70
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
use phpDocumentor\Reflection\DocBlockFactory;
use phpDocumentor\Reflection\File\LocalFile;
use phpDocumentor\Reflection\Php\ProjectFactory;
use phpDocumentor\Reflection\Php\Class_;
use phpDocumentor\Reflection\Php\File;
use phpDocumentor\Reflection\Php\Function_;
use phpDocumentor\Reflection\Php\Method;
use phpDocumentor\Reflection\Php\Property;

/**
* Fixes newline handling in parsed text.
Expand Down Expand Up @@ -65,11 +70,9 @@ function get_namespace( $fqsen ) {
}

/**
* @param $element
*
* @return array
*/
function export_docblock( $element ) {
function export_docblock( Property|Method|Hook|File|Function_|Class_ $element ) {
$docblock = $element->getDocBlock();
if ( ! $docblock ) {
return array(
Expand Down

0 comments on commit 3034f70

Please sign in to comment.