mirror of
https://github.com/predis/predis.git
synced 2026-08-18 15:01:47 +00:00
Updated file_exists() to is_file() and changed require_once() to require() per Predis' author's suggestions
This commit is contained in:
@@ -53,8 +53,8 @@ class Autoloader
|
||||
if (0 === strpos($className, $this->prefix)) {
|
||||
$parts = explode('\\', substr($className, $this->prefixLength));
|
||||
$filepath = $this->directory.DIRECTORY_SEPARATOR.implode(DIRECTORY_SEPARATOR, $parts).'.php';
|
||||
if (file_exists($filepath)) {
|
||||
require_once($filepath);
|
||||
if (is_file($filepath)) {
|
||||
require($filepath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user