1 | <?php |
||
5 | class AuthorsController extends SiteController |
||
6 | { |
||
7 | |||
8 | public static $url_handlers = array( |
||
9 | '$AuthorID!' => 'author' |
||
10 | ); |
||
11 | |||
12 | public static $allowed_actions = array( |
||
13 | 'index', |
||
14 | 'author' |
||
15 | ); |
||
16 | |||
17 | public function index() |
||
21 | |||
22 | public function author($request) |
||
33 | |||
34 | public function Title() |
||
38 | |||
39 | public function Link() |
||
43 | |||
44 | public function Authors() |
||
48 | } |
||
49 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: