Remove yield statement and downgrade php version requirement to v5.4