Sublime Forum

Tab character inserts characters instead of indents in PHP

#1

It only seems to happen at the beginning the arrow operator (->) and I haven’t installed any new packages in the last ~month or so. Prior to yesterday I was indenting my method chains without any issue so I’m awful confused. Sample code is below and where it becomes -#N-A> it should just be pushed in 4 spaces.

public function index()
{
    $classes = Online_Class::all();

    return view('classes.index')
    ->with('classes', $classes);
}

becomes:

public function index()
{
    $classes = Online_Class::all();

    return view('classes.index')
    -#N-A>with('classes', $classes);
}
0 Likes