`error_get_last()` can return `null`, so I would guess that in some edge cases this can lead to `notice`...