TypeError thrown

vsprintf(): Argument #2 ($values) must be of type array, string given