Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed May 25, 2024
1 parent eae005a commit 5cb9d46
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
11 changes: 11 additions & 0 deletions log/debug.log
Original file line number Diff line number Diff line change
Expand Up @@ -1094,3 +1094,14 @@
[time]
1716616624

[a]
array:1 [
"a" => 123
]

[b]
"abc"

[time]
1716616793

6 changes: 0 additions & 6 deletions src/Commands/LogCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,4 @@ public function debug(): void
$offset = $newOffset;
}
}

#[ConsoleCommand('log')]
public function log(): void
{
lw(a: ['a' => 123], b: 'abc', time: time());
}
}
15 changes: 15 additions & 0 deletions tests/Fixtures/LogDebugCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Tests\Tempest\Console\Fixtures;

use Tempest\Console\ConsoleCommand;
use function Tempest\lw;

final readonly class LogDebugCommand
{
#[ConsoleCommand('log')]
public function log(): void
{
lw(a: ['a' => 123], b: 'abc', time: time());
}
}

0 comments on commit 5cb9d46

Please sign in to comment.