Skip to content

Commit 057f5bd

Browse files
committed
strict types fixes
1 parent 39c3017 commit 057f5bd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Application/LinkGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function link($dest, array $params = [])
5151
try {
5252
$class = $this->presenterFactory ? $this->presenterFactory->getPresenterClass($presenter) : NULL;
5353
} catch (InvalidPresenterException $e) {
54-
throw new UI\InvalidLinkException($e->getMessage(), NULL, $e);
54+
throw new UI\InvalidLinkException($e->getMessage(), 0, $e);
5555
}
5656

5757
if (is_subclass_of($class, UI\Presenter::class)) {

src/Application/UI/Presenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ protected function createRequest($component, $destination, array $args, $mode)
854854
try {
855855
$presenterClass = $this->presenterFactory->getPresenterClass($presenter);
856856
} catch (Application\InvalidPresenterException $e) {
857-
throw new InvalidLinkException($e->getMessage(), NULL, $e);
857+
throw new InvalidLinkException($e->getMessage(), 0, $e);
858858
}
859859
}
860860

0 commit comments

Comments
 (0)