@@ -498,7 +498,7 @@ public function findLayoutTemplateFile()
498498 */
499499 public function formatLayoutTemplateFiles ()
500500 {
501- if (preg_match ('#/| \\\\# ' , $ this ->layout )) {
501+ if (preg_match ('#/| \\\\# ' , ( string ) $ this ->layout )) {
502502 return [$ this ->layout ];
503503 }
504504 list ($ module , $ presenter ) = Helpers::splitName ($ this ->getName ());
@@ -891,7 +891,7 @@ protected function createRequest($component, $destination, array $args, $mode)
891891 $ action = self ::DEFAULT_ACTION ;
892892 }
893893
894- $ current = ($ action === '* ' || strcasecmp ($ action , $ this ->action ) === 0 ) && $ presenterClass === get_class ($ this );
894+ $ current = ($ action === '* ' || strcasecmp ($ action , ( string ) $ this ->action ) === 0 ) && $ presenterClass === get_class ($ this );
895895
896896 $ reflection = new ComponentReflection ($ presenterClass );
897897
@@ -979,7 +979,7 @@ protected function createRequest($component, $destination, array $args, $mode)
979979 $ url = $ this ->router ->constructUrl ($ this ->lastCreatedRequest , $ this ->refUrlCache );
980980 if ($ url === NULL ) {
981981 unset($ args [self ::ACTION_KEY ]);
982- $ params = urldecode (http_build_query ($ args , NULL , ', ' ));
982+ $ params = urldecode (http_build_query ($ args , '' , ', ' ));
983983 throw new InvalidLinkException ("No route for $ presenter: $ action( $ params) " );
984984 }
985985
@@ -1231,7 +1231,7 @@ private function initGlobalParameters()
12311231 }
12321232
12331233 foreach ($ params as $ key => $ value ) {
1234- if (!preg_match ('#^((?:[a-z0-9_]+-)*)((?!\d+\z)[a-z0-9_]+)\z#i ' , $ key , $ matches )) {
1234+ if (!preg_match ('#^((?:[a-z0-9_]+-)*)((?!\d+\z)[a-z0-9_]+)\z#i ' , ( string ) $ key , $ matches )) {
12351235 continue ;
12361236 } elseif (!$ matches [1 ]) {
12371237 $ selfParams [$ key ] = $ value ;
0 commit comments