![]() |
Issue handling object types
I'm using an MVC framework i've created but cant seem to get the following class to instantiate as it errors saying the objevt being passed is not of the correct type. Any ideas what is going wrong?
Here's the calling function from a registry class: PHP Code:
PHP Code:
Quote:
|
must be an instance of ContollerMap, instance of ControllerMap given
You have misspelt your type hint on your constructor. |
Cheers SketchMedia. Feel like a right bozo haha. Its amazing when you are learning something new and it doesnt work you assume the reason must be something complicated. Thanks.
|
No probs, an easy mistake to make.
Glad its all sorted! |
| All times are GMT. The time now is 06:37 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0