add PHP 7.1 typehints

This commit is contained in:
TomasVotruba
2017-11-30 10:27:01 +01:00
committed by Jaap van Otterdijk
parent f9d1a0c177
commit 4a9675841b
64 changed files with 410 additions and 430 deletions
+3 -4
View File
@@ -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;