mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
address PHPStan warning about use of empty
This commit is contained in:
@ -201,7 +201,7 @@ final class TestCaseFactory
|
|||||||
$namespace = implode('\\', $partsFQN);
|
$namespace = implode('\\', $partsFQN);
|
||||||
$baseClass = sprintf('\%s', $this->class);
|
$baseClass = sprintf('\%s', $this->class);
|
||||||
|
|
||||||
if (empty(trim($className))) {
|
if ('' === trim($className)) {
|
||||||
$className = 'InvalidTestName' . Str::random();
|
$className = 'InvalidTestName' . Str::random();
|
||||||
$classFQN .= $className;
|
$classFQN .= $className;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user