Cast string to int to fulfill interface

This commit is contained in:
Daniel Siepmann 2020-04-01 11:38:48 +02:00
parent be0e13416c
commit 382f58a6ec
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -34,7 +34,7 @@ class Factory implements FromRequest
static::getRouting($request)->getPageId(),
$request->getAttribute('language'),
new \DateTimeImmutable(),
static::getRouting($request)->getPageType(),
(int) static::getRouting($request)->getPageType(),
(string) $request->getUri(),
$request->getHeader('User-Agent')[0] ?? ''
);