fixed generatorinterface extending error in older php versions