Prevent yaml parsing error in php assistant