unkwntech Posted December 15, 2008 Share Posted December 15, 2008 So i'm getting this error which seem entirly backwords, any ideas whats going on? Error: Catchable fatal error: Argument 1 passed to siteMS::logger() must be an instance of string, string given Offending line: $this->logger('Invalid page name requested', 0, 0, $pageName); Definition of logger: private function logger(string $message, int $line, string $file, string $extra=null) {...} Quote Link to comment https://forums.phpfreaks.com/topic/137064-must-be-an-instance-of-string-string-given/ Share on other sites More sharing options...
premiso Posted December 15, 2008 Share Posted December 15, 2008 3rd parameter is set as an int 0 instead of a string of $file. Quote Link to comment https://forums.phpfreaks.com/topic/137064-must-be-an-instance-of-string-string-given/#findComment-715844 Share on other sites More sharing options...
unkwntech Posted December 15, 2008 Author Share Posted December 15, 2008 That is true but still does not explain the error as it states argument 1, is this just a PHP bug? Quote Link to comment https://forums.phpfreaks.com/topic/137064-must-be-an-instance-of-string-string-given/#findComment-715845 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.