Skip to content

Commit

Permalink
Fixed deprecated array syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Skrypnyk committed Nov 4, 2020
1 parent 8ca37bd commit 503d256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FilesystemTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ protected function fsPathsExist($paths, $strict = true)
protected function realpath($path)
{
// Whether $path is unix or not.
$unipath = strlen($path) == 0 || $path{0} != '/';
$unipath = strlen($path) == 0 || $path[0] != '/';
$unc = substr($path, 0, 2) == '\\\\' ? true : false;
// Attempt to detect if path is relative in which case, add cwd.
if (strpos($path, ':') === false && $unipath && !$unc) {
$path = getcwd().DIRECTORY_SEPARATOR.$path;
if ($path{0} == '/') {
if ($path[0] == '/') {
$unipath = false;
}
}
Expand Down

0 comments on commit 503d256

Please sign in to comment.