php fatal uncaught error problem

Please guys, I have tried several thoughts in my head on how to bypass this error but it has been futile. The error I'm having is this:

Fatal error: Uncaught Error: Call to a member function passed() on boolean in C:\xampp\htdocs\test\crib\register.php:42 Stack trace: #0 {main} thrown in C:\xampp\htdocs\test\crib\register.php on line 42

i simply dont know why the passed function has this problem. It seems okay. I really need yoour help guys….. please

the full code are…

php fatal uncaught error problem