Skip to content

Commit 1d7db0c

Browse files
committed
phpstan fixes
1 parent 4f72181 commit 1d7db0c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [v13]
66
pull_request:
7-
branches: [master]
7+
branches: [v13]
88

99
jobs:
1010
run-tests:

src/Resolvers/UrlResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function resolve(Auditable $auditable): string
2525
public static function resolveCommandLine(): string
2626
{
2727
$command = Request::server('argv', null);
28-
if (is_array($command)) {
28+
if (is_array($command)) { // @phpstan-ignore function.impossibleType
2929
return implode(' ', $command);
3030
}
3131

tests/Functional/AuditingTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,7 @@ public function it_will_remove_older_audits_above_the_threshold()
311311
]);
312312

313313
foreach (range(1, 20) as $count) {
314-
if ($count === 11) {
315-
sleep(1);
316-
}
314+
Carbon::setTestNow(now()->addSeconds($count));
317315

318316
$article->update([
319317
'title' => 'Title #'.$count,

0 commit comments

Comments
 (0)