Skip to content

Commit bab93c5

Browse files
committed
Turned return type annotations of private methods into php return types.
1 parent 406c249 commit bab93c5

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

FileLocator.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,8 @@ public function locate($name, $currentPath = null, $first = true)
7676

7777
/**
7878
* Returns whether the file path is an absolute path.
79-
*
80-
* @param string $file A file path
81-
*
82-
* @return bool
8379
*/
84-
private function isAbsolutePath(string $file)
80+
private function isAbsolutePath(string $file): bool
8581
{
8682
if ('/' === $file[0] || '\\' === $file[0]
8783
|| (\strlen($file) > 3 && ctype_alpha($file[0])

ResourceCheckerConfigCache.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ public function write($content, array $metadata = null)
144144

145145
/**
146146
* Gets the meta file path.
147-
*
148-
* @return string The meta file path
149147
*/
150-
private function getMetaFile()
148+
private function getMetaFile(): string
151149
{
152150
return $this->file.'.meta';
153151
}

0 commit comments

Comments
 (0)