This commit is contained in:
Nuno Maduro
2025-07-22 23:58:36 +01:00
parent f9901245f1
commit fe27012bbc
3 changed files with 4 additions and 10 deletions

View File

@ -355,9 +355,7 @@ final class TestCall // @phpstan-ignore-line
public function skipOnCI(): self public function skipOnCI(): self
{ {
if ($this->runningOnCI()) { if ($this->runningOnCI()) {
return $this->skip(sprintf( return $this->skip('This test is skipped on [CI].');
'This test is skipped on [CI].',
));
} }
return $this; return $this;
@ -366,9 +364,7 @@ final class TestCall // @phpstan-ignore-line
public function skipLocally(): self public function skipLocally(): self
{ {
if ($this->runningOnCI() === false) { if ($this->runningOnCI() === false) {
return $this->skip(sprintf( return $this->skip('This test is skipped [locally].');
'This test is skipped [locally].',
));
} }
return $this; return $this;

View File

@ -94,10 +94,8 @@ final class Shell
$config = app()->make('config'); $config = app()->make('config');
$loader = ClassAliasAutoloader::register( return ClassAliasAutoloader::register(
$shell, $path, $config->get('tinker.alias', []), $config->get('tinker.dont_alias', []) $shell, $path, $config->get('tinker.alias', []), $config->get('tinker.dont_alias', [])
); );
return $loader;
} }
} }

View File

@ -125,6 +125,6 @@ final class Str
{ {
$target = preg_replace('/[^a-zA-Z0-9]+/', '-', $target); $target = preg_replace('/[^a-zA-Z0-9]+/', '-', $target);
return strtolower(trim($target, '-')); return strtolower(trim((string) $target, '-'));
} }
} }