Skip to content

Commit

Permalink
[mod] phpstan analyse
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshige committed Dec 19, 2023
1 parent fd4bb24 commit d82c882
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/Action/History.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@

use Chanshige\SmartLock\Sesame\Interface\DeviceInterface;

use function assert;

final class History extends AbstractAction
{
public function __construct(
private readonly DeviceInterface $device,
private readonly int $page = 0,
private readonly int $lg = 50,
) {
assert($this->device instanceof DeviceInterface);

parent::__construct($device);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Http/ResponseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

interface ResponseInterface
{
/** @return array<string, string|int> */
/** @return array<string, array<int, string|int>> */
public function headers(): array;

public function statusCode(): int;
Expand Down
2 changes: 0 additions & 2 deletions src/Interface/ActionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

interface ActionInterface extends DeviceInterface
{
public function __construct(DeviceInterface $device);

public function method(): string;

public function path(): string;
Expand Down

0 comments on commit d82c882

Please sign in to comment.