mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
// fixing type checks
This commit is contained in:
@ -165,7 +165,7 @@ final class TestCaseFactory
|
|||||||
}, $filename);
|
}, $filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
$filename = realpath($filename);
|
$filename = (string) realpath($filename);
|
||||||
$rootPath = TestSuite::getInstance()->rootPath;
|
$rootPath = TestSuite::getInstance()->rootPath;
|
||||||
$relativePath = str_replace($rootPath . DIRECTORY_SEPARATOR, '', $filename);
|
$relativePath = str_replace($rootPath . DIRECTORY_SEPARATOR, '', $filename);
|
||||||
$relativePath = dirname(ucfirst($relativePath)) . DIRECTORY_SEPARATOR . basename($relativePath, '.php');
|
$relativePath = dirname(ucfirst($relativePath)) . DIRECTORY_SEPARATOR . basename($relativePath, '.php');
|
||||||
|
|||||||
@ -83,7 +83,7 @@ final class UsesCall
|
|||||||
throw new InvalidUsesPath($target);
|
throw new InvalidUsesPath($target);
|
||||||
}
|
}
|
||||||
|
|
||||||
return realpath($target);
|
return (string) realpath($target);
|
||||||
}, $targets);
|
}, $targets);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ final class Backtrace
|
|||||||
$current = null;
|
$current = null;
|
||||||
|
|
||||||
foreach (debug_backtrace() as $trace) {
|
foreach (debug_backtrace() as $trace) {
|
||||||
if (Str::endsWith($trace[self::FILE], realpath('vendor/phpunit/phpunit/src/Util/FileLoader.php'))) {
|
if (Str::endsWith($trace[self::FILE], (string) realpath('vendor/phpunit/phpunit/src/Util/FileLoader.php'))) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user