This is because yield become a language construct in PHP 5.5 (used by Generators ), but someone decided it was a good idea to use this short word to mean a function:
public function yield($section) { return isset($this->sections[$section]) ? $this->sections[$section] : ''; }
Switching to PHP 5.4 (after all, this is the current major version, 5.5 is not even in beta), and it should work fine.
source share