Skip to content

Commit b1036d8

Browse files
derrabusfabpot
authored andcommitted
Add types to constructors and private/final/internal methods (Batch I)
1 parent bf5b7ab commit b1036d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Resource/GlobResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function (\SplFileInfo $file, $path) {
174174
}
175175
}
176176

177-
private function computeHash()
177+
private function computeHash(): string
178178
{
179179
$hash = hash_init('md5');
180180

Resource/ReflectionClassResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private function loadFiles(\ReflectionClass $class)
9898
} while ($class = $class->getParentClass());
9999
}
100100

101-
private function computeHash()
101+
private function computeHash(): string
102102
{
103103
if (null === $this->classReflector) {
104104
try {
@@ -117,7 +117,7 @@ private function computeHash()
117117
return hash_final($hash);
118118
}
119119

120-
private function generateSignature(\ReflectionClass $class)
120+
private function generateSignature(\ReflectionClass $class): iterable
121121
{
122122
yield $class->getDocComment();
123123
yield (int) $class->isFinal();

0 commit comments

Comments
 (0)