L
L
Lucius132021-06-17 05:56:40
PHP
Lucius13, 2021-06-17 05:56:40

Parse error: syntax error, unexpected ':', expecting ')' in W:\domains\miniframe\Router\routes.php on line 3?

What is he swearing at? Everything seems to be written correctly.

<?php
use app\services\Router;
Router::page(uri:'/test',page_name:'test');
Router::page(uri:'/test2',page_name:'test2');
Router::enable();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-06-17
@Lucius13

Named arguments were introduced in PHP 8.
It looks like you have an older version.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question