mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-19 18:43:12 +00:00
add PHP 7.1 typehints
This commit is contained in:
committed by
Jaap van Otterdijk
parent
f9d1a0c177
commit
4a9675841b
@@ -44,7 +44,7 @@ class ExampleFinder
|
||||
/**
|
||||
* Registers the project's root directory where an 'examples' folder can be expected.
|
||||
*/
|
||||
public function setSourceDirectory(string $directory = '')
|
||||
public function setSourceDirectory(string $directory = ''): void
|
||||
{
|
||||
$this->sourceDirectory = $directory;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ class ExampleFinder
|
||||
*
|
||||
* @param string[] $directories
|
||||
*/
|
||||
public function setExampleDirectories(array $directories)
|
||||
public function setExampleDirectories(array $directories): void
|
||||
{
|
||||
$this->exampleDirectories = $directories;
|
||||
}
|
||||
@@ -89,9 +89,8 @@ class ExampleFinder
|
||||
* 4. Checks the path relative to the current working directory for the given filename
|
||||
*
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
private function getExampleFileContents(string $filename)
|
||||
private function getExampleFileContents(string $filename): ?string
|
||||
{
|
||||
$normalizedPath = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user