Skip to content

Commit 0c4e810

Browse files
authored
Optimized code about isUnsupportedReflectionType ().
1 parent c4be36a commit 0c4e810

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/LazyLoader/LazyLoader.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,7 @@ private function startsWith($haystack, $needle): bool
171171
*/
172172
private function isUnsupportedReflectionType(ReflectionClass $targetReflection): bool
173173
{
174-
// Final class
175-
if ($targetReflection->isFinal()) {
176-
return true;
177-
}
178-
return false;
174+
return $targetReflection->isFinal();
179175
}
180176

181177
private function buildNewCode(AbstractLazyProxyBuilder $builder, string $proxy, ReflectionClass $reflectionClass): string

0 commit comments

Comments
 (0)