Skip to content

Commit 57aebf2

Browse files
committed
Fix psalm errors
1 parent dd5912e commit 57aebf2

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

src/Internal/Runtime.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/**
1212
* @internal
13-
* @psalm-internal
13+
* @psalm-internal Aspectus
1414
*/
1515
final class Runtime implements Component
1616
{
@@ -35,10 +35,4 @@ public function view(): string
3535
{
3636
return $this->component->view();
3737
}
38-
39-
public function subscribes(): array
40-
{
41-
return $this->component->subscribes();
42-
}
43-
4438
}

src/Model.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Aspectus;
44

5-
65
interface Model
76
{
87
/**
@@ -14,13 +13,5 @@ interface Model
1413
* @todo Maybe the message returned here is a command only which needs to be queued for the next iteration ?
1514
* Not sure, as if we have a SKIP_RENDER one it shouldnt be..
1615
*/
17-
public function update(Message $message): ?Message;
18-
19-
/**
20-
* Returns a list of all the Message types that this model is interested in
21-
* All children collaborators should be asked as well and returned
22-
*
23-
* @return string[]
24-
*/
25-
// public function subscribes(): array;
16+
public function update(?Message $message): ?Message;
2617
}

src/Render/StandardRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct(
1515

1616
public function render(Component $component): void
1717
{
18-
$this->xterm->write($component->view($component))
18+
$this->xterm->write($component->view())
1919
->flush(); // thats self-referential here :D visitor maybe?
2020
}
2121
}

0 commit comments

Comments
 (0)