If $selfError is left as true the next time FileLog::write is called no error will be triggered whereas it probably should. I think it needs to surround the trigger_error like this.