yield keyword for generators requires PHP 5.5.
Support for the last version that didn't have generators ended mid-late 2015. Continuing to use anything below what is currently supported is a bad idea. Consider bumping your PHP version.
Having said that, you may want to investigate sdk version 2.8.8 or lower. The 'required' sections of packagist list the php version requirements.