Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/finder/Tests/Iterator/MockSplFileInfo.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/vendor/symfony/finder/Tests/Iterator/MockSplFileInfo.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/finder/Tests/Iterator/MockSplFileInfo.php Thu Feb 28 13:21:36 2019 +0000 @@ -25,17 +25,17 @@ public function __construct($param) { - if (is_string($param)) { + if (\is_string($param)) { parent::__construct($param); - } elseif (is_array($param)) { - $defaults = array( - 'name' => 'file.txt', - 'contents' => null, - 'mode' => null, - 'type' => null, - 'relativePath' => null, - 'relativePathname' => null, - ); + } elseif (\is_array($param)) { + $defaults = [ + 'name' => 'file.txt', + 'contents' => null, + 'mode' => null, + 'type' => null, + 'relativePath' => null, + 'relativePathname' => null, + ]; $defaults = array_merge($defaults, $param); parent::__construct($defaults['name']); $this->setContents($defaults['contents']); @@ -92,7 +92,7 @@ public function setType($type) { - if (is_string($type)) { + if (\is_string($type)) { switch ($type) { case 'directory': case 'd':