8000 use finally · symfony/symfony@dd9836b · GitHub
[go: up one dir, main page]

Skip to content

Commit dd9836b

Browse files
committed
use finally
1 parent 85d4ac4 commit dd9836b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Symfony/Component/DependencyInjection/Config/AutowireServiceResource.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ public function isFresh($timestamp)
3838
}
3939

4040
try {
41-
$reflectionClass = new \ReflectionClass($this->class);
41+
new \ReflectionClass($this->class);
4242
} catch (\ReflectionException $e) {
4343
// the class does not exist anymore!
44-
44+
} finally {
4545
return false;
4646
}
47-
48-
return false;
4947
}
5048

5149
public function __toString()

0 commit comments

Comments
 (0)
0