mirror of
https://github.com/php/phd.git
synced 2026-03-23 22:52:05 +01:00
Fix PHPDoc Return types
This commit is contained in:
committed by
Gina Peter Banyard
parent
e89333c222
commit
d611e64fb1
@@ -31,7 +31,7 @@ class Highlighter
|
||||
*
|
||||
* @param string $format Output format (pdf, xhtml, troff, ...)
|
||||
*
|
||||
* @return PhDHighlighter Highlighter object
|
||||
* @return Highlighter Highlighter object
|
||||
*/
|
||||
public static function factory($format)
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ class Highlighter_GeSHi extends Highlighter
|
||||
*
|
||||
* @param string $format Output format (pdf, xhtml, troff, ...)
|
||||
*
|
||||
* @return PhDHighlighter Highlighter object
|
||||
* @return Highlighter Highlighter object
|
||||
*/
|
||||
public static function factory($format)
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ class Highlighter_GeSHi11x extends Highlighter
|
||||
*
|
||||
* @param string $format Output format (pdf, xhtml, troff, ...)
|
||||
*
|
||||
* @return PhDHighlighter Highlighter object
|
||||
* @return Highlighter Highlighter object
|
||||
*/
|
||||
public static function factory($format)
|
||||
{
|
||||
@@ -122,7 +122,7 @@ class Highlighter_GeSHi11x extends Highlighter
|
||||
*
|
||||
* @param string $role Source code role to use (php, xml, html, ...)
|
||||
*
|
||||
* @return string Language name for GeSHi or null if not found.
|
||||
* @return ?string Language name for GeSHi or null if not found.
|
||||
*/
|
||||
protected function getGeSHiLanguage($role)
|
||||
{
|
||||
|
||||
@@ -242,7 +242,7 @@ class Options_Handler implements Options_Interface
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, string>
|
||||
* @return array<string, array<string>>
|
||||
*/
|
||||
public function option_p(string $k, mixed $v): array
|
||||
{
|
||||
@@ -288,7 +288,7 @@ class Options_Handler implements Options_Interface
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, string>
|
||||
* @return array<string, true>
|
||||
*/
|
||||
public function option_q(string $k, mixed $v): array
|
||||
{
|
||||
@@ -296,7 +296,7 @@ class Options_Handler implements Options_Interface
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, string>
|
||||
* @return array<string, true>
|
||||
*/
|
||||
public function option_quit(string $k, mixed $v): array
|
||||
{
|
||||
|
||||
@@ -83,7 +83,7 @@ class Package_IDE_API
|
||||
* Loads a function file and returns a Package_IDE_API_Function.
|
||||
*
|
||||
* @param string $filename File of the function.
|
||||
* @return Package_IDE_API_Function Object representing the function.
|
||||
* @return ?Package_IDE_API_Function Object representing the function.
|
||||
*/
|
||||
private function loadFunction($filename)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@ class ReaderKeeper
|
||||
/**
|
||||
* Removes the reader from the top of the stack.
|
||||
*
|
||||
* @return void
|
||||
* @return mixed
|
||||
*/
|
||||
public static function popReader()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user