package and depencies
This commit is contained in:
16
vendor/symfony/finder/SplFileInfo.php
vendored
16
vendor/symfony/finder/SplFileInfo.php
vendored
@@ -18,8 +18,8 @@ namespace Symfony\Component\Finder;
|
||||
*/
|
||||
class SplFileInfo extends \SplFileInfo
|
||||
{
|
||||
private $relativePath;
|
||||
private $relativePathname;
|
||||
private string $relativePath;
|
||||
private string $relativePathname;
|
||||
|
||||
/**
|
||||
* @param string $file The file name
|
||||
@@ -37,10 +37,8 @@ class SplFileInfo extends \SplFileInfo
|
||||
* Returns the relative path.
|
||||
*
|
||||
* This path does not contain the file name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRelativePath()
|
||||
public function getRelativePath(): string
|
||||
{
|
||||
return $this->relativePath;
|
||||
}
|
||||
@@ -49,10 +47,8 @@ class SplFileInfo extends \SplFileInfo
|
||||
* Returns the relative path name.
|
||||
*
|
||||
* This path contains the file name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRelativePathname()
|
||||
public function getRelativePathname(): string
|
||||
{
|
||||
return $this->relativePathname;
|
||||
}
|
||||
@@ -67,11 +63,9 @@ class SplFileInfo extends \SplFileInfo
|
||||
/**
|
||||
* Returns the contents of the file.
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @throws \RuntimeException
|
||||
*/
|
||||
public function getContents()
|
||||
public function getContents(): string
|
||||
{
|
||||
set_error_handler(function ($type, $msg) use (&$error) { $error = $msg; });
|
||||
try {
|
||||
|
Reference in New Issue
Block a user