Just checked this challenge and everything worked as expected, can you please re-check it, and probably give more context? Where do you see this error? Challenge browser or in message on page?
Under the "Copy the getType from Ship and paste it into RebelShip and change what it returns to 'Rebel':" you are showing wrong code (isFunctional function instead of getType).
So I need to set this up so the Rebel ships are never showing as broken which we can do really easily by overriding isFunctional inside of RebelShip. Let's update this to return true; which will never show a rebel ship as broken:
6 Comments
( ! ) Warning: require(Cache.php): failed to open stream: No such file or directory in index.php on line 3
Call Stack
for the first challenge of this video
Hey @Dima
Just checked this challenge and everything worked as expected, can you please re-check it, and probably give more context? Where do you see this error? Challenge browser or in message on page?
Cheers!
Under the "Copy the getType from Ship
and paste it into RebelShip and change what it returns to 'Rebel':" you are showing wrong code (isFunctional function instead of getType).
Ah, you're right, done!
Nice catch, by the way, thank you!
Same thing after "Let's update this to return true" the code has no open curly brace
Hey Marc,
Hm, I'm not sure about it. It says:
And then we show a code block for RebelShip that returns true in isFunctional(), see: https://symfonycasts.com/sc...
As for me it matches the video, am I wrong?
Cheers!
"Houston: no signs of life"
Start the conversation!