Skip to content

Commit 406b557

Browse files
refactor: Apply rector changes
Signed-off-by: GitHub <noreply@github.com>
1 parent f3f9457 commit 406b557

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/PageController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ protected function provideTemplate(string $template, ?Form $form = null, array $
270270
*/
271271
protected function insertHeaderOnIos(): void {
272272
$USER_AGENT_IPHONE_SAFARI = '/^Mozilla\/5\.0 \(iPhone[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/[0-9.]+ Mobile\/[0-9.A-Z]+ Safari\/[0-9.A-Z]+$/';
273-
if (preg_match($USER_AGENT_IPHONE_SAFARI, $this->request->getHeader('User-Agent'))) {
273+
if (preg_match($USER_AGENT_IPHONE_SAFARI, (string) $this->request->getHeader('User-Agent'))) {
274274
Util::addHeader('meta', [
275275
'name' => 'viewport',
276276
'content' => 'width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1'

0 commit comments

Comments
 (0)