[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.
This commit is contained in:
parent
ff9c1321dc
commit
56b60c8d46
@ -87,7 +87,7 @@ class FileResource implements ResourceInterface
|
||||
*/
|
||||
public function exists()
|
||||
{
|
||||
return file_exists($this->resource);
|
||||
return is_file($this->resource);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user