Skip to content

Commit d66c014

Browse files
committed
build: fix latent phan findings under the newest analyzer (no API change)
1 parent 3a15fb0 commit d66c014

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/fake-index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
$cliOptions->process(Env::string('PHPUNINT_ARGUMENTS'));
7979

80-
$realIndex = (string)($realIndex ?? \realpath($cliOptions->getOption('index')));
80+
$realIndex = (string)($realIndex ?? \realpath((string)$cliOptions->getOption('index')));
8181

8282
if (\class_exists(CovCatcher::class) && Sys::hasXdebug()) {
8383
$testname = (string)data($_REQUEST)->get('testname');

src/functions/aliases.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,10 @@ function isFalse(mixed $value, string $message = ''): void
7878
}
7979

8080
/**
81-
* @param string $expected
82-
* @param mixed $className
81+
* @param class-string $expected
82+
* @param mixed $className
8383
*
84-
* @psalm-template ExpectedType of object
85-
* @psalm-param class-string<ExpectedType> $expected
86-
* @phan-suppress PhanPluginCanUseParamType
84+
* @phan-suppress PhanPluginCanUseParamType
8785
*/
8886
function isClass($expected, $className, string $message = ''): void
8987
{

0 commit comments

Comments
 (0)