8000 missing test ? · symfony/symfony@c86595b · GitHub
[go: up one dir, main page]

Skip to content

Commit c86595b

Browse files
committed
missing test ?
1 parent 85d4ac4 commit c86595b

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\DependencyInjection\Config;
1313

1414
use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
15+
use Symfony\Component\DependencyInjection\Compiler\AutowirePass;
1516

1617
class AutowireServiceResource implements SelfCheckingResourceInterface, \Serializable
1718
{
@@ -32,20 +33,7 @@ public function isFresh($timestamp)
3233
return false;
3334
}
3435

35-
// has the file *not* been modified? Definitely fresh
36-
if (@filemtime($this->filePath) <= $timestamp) {
37-
return true;
38-
}
39-
40-
try {
41-
$reflectionClass = new \ReflectionClass($this->class);
42-
} catch (\ReflectionException $e) {
43-
// the class does not exist anymore!
44-
45-
return false;
46-
}
47-
48-
return false;
36+
return @filemtime($this->filePath) <= $timestamp;
4937
}
5038

5139
public function __toString()

0 commit comments

Comments
 (0)
0