Skip to content

Commit 6724621

Browse files
committed
compatibility with latte/latte 2.5
1 parent d2c13ab commit 6724621

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"nette/forms": "^3.0",
3232
"nette/robot-loader": "^3.0",
3333
"nette/security": "^3.0",
34-
"latte/latte": "^2.5",
34+
"latte/latte": "^2.5.1",
3535
"tracy/tracy": "^2.6",
3636
"mockery/mockery": "^1.0"
3737
},

src/Bridges/ApplicationLatte/SnippetBridge.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,33 +41,33 @@ public function isSnippetMode(): bool
4141
}
4242

4343

44-
public function setSnippetMode(bool $snippetMode)
44+
public function setSnippetMode($snippetMode)
4545
{
4646
$this->control->snippetMode = $snippetMode;
4747
}
4848

4949

50-
public function needsRedraw(string $name): bool
50+
public function needsRedraw($name): bool
5151
{
5252
return $this->control->isControlInvalid($name);
5353
}
5454

5555

56-
public function markRedrawn(string $name): void
56+
public function markRedrawn($name): void
5757
{
5858
if ($name !== '') {
5959
$this->control->redrawControl($name, false);
6060
}
6161
}
6262

6363

64-
public function getHtmlId(string $name): string
64+
public function getHtmlId($name): string
6565
{
6666
return $this->control->getSnippetId($name);
6767
}
6868

6969

70-
public function addSnippet(string $name, string $content): void
70+
public function addSnippet($name, $content): void
7171
{
7272
if ($this->payload === null) {
7373
$this->payload = $this->control->getPresenter()->getPayload();

0 commit comments

Comments
 (0)