I think not because 0 === $pos is that "charset=" is at the beginning of $type, not that there is nothing else after it ( this is the [assert](https://github.com/egulias/symfony/commit/89395adde17602c97ca3ffd477d2b80f6806161d#L1R217)).