Skip to content

Commit

Permalink
Merge branch '3.4' into 4.3
Browse files Browse the repository at this point in the history
* 3.4:
  Fix inconsistent return points.
  [Security/Core] UserInterface::getPassword() can return null
  [Router] Fix TraceableUrlMatcher behaviour with trailing slash
  • Loading branch information
nicolas-grekas committed Aug 20, 2019
2 parents 8af2a22 + 00e3a6d commit 9abbb7e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Tests/FilesystemTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FilesystemTestCase extends TestCase
protected $longPathNamesWindows = [];

/**
* @var \Symfony\Component\Filesystem\Filesystem
* @var Filesystem
*/
protected $filesystem = null;

Expand Down Expand Up @@ -110,9 +110,8 @@ protected function getFileOwner($filepath)
$this->markAsSkippedIfPosixIsMissing();

$infos = stat($filepath);
if ($datas = posix_getpwuid($infos['uid'])) {
return $datas['name'];
}

return ($datas = posix_getpwuid($infos['uid'])) ? $datas['name'] : null;
}

protected function getFileGroup($filepath)
Expand Down

0 comments on commit 9abbb7e

Please sign in to comment.