Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Object-Oriented PHP Basics (Retired) Inheritance, Interfaces, and Exceptions Final Challenge

David McNeill
David McNeill
44,438 Points

Unexpected error message

The task asks you to echo out the result of your getInfo function for the $brook_trout object, which I believe I've done correctly.

However the challenge fails and the error message says "Did you echo the result of the 'getOutput' function?' Where does getOutput come from?!

2 Answers

Agreed. Needs switched out.

David McNeill
David McNeill
44,438 Points

Ok my bad. I had a syntax issue on my method call.

But still, that error message was a little confusing, might be worth addressing it guys!