Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56b60c8

Browse files
committed
[Config] use is_file in FileResource::exists()
file resource existence check shouldn't return true if there's directory with same name instead of file.
1 parent ff9c132 commit 56b60c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Config/Resource/FileResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function isFresh($timestamp)
8787
*/
8888
public function exists()
8989
{
90-
return file_exists($this->resource);
90+
return is_file($this->resource);
9191
}
9292

9393
/**

0 commit comments

Comments
 (0)