Removed type hinting for compileFields method