Non-abstract method Foo::bar() must contain body

I was working on one of my PHP based projects, and I was getting the following error:

Non-abstract method Foo::bar() must contain body in Foo.php on line 10

The problem was that I had accidentally put a semicolon at the end of the first line of the function:

WRONG WAY:

class Foo 
{ 
    function bar(); // extra semicolon! 
    { 
        // stuff 
    } 
}

RIGHT WAY:

class Foo 
{ 
    function bar()    // no semicolon, yay 
    { 
        // stuff 
    } 
}