Fix compatible with php5.4 method override