Laravel-datatables: syntax error, unexpected '?'

Created on 31 Oct 2017  路  4Comments  路  Source: yajra/laravel-datatables

(1/1)聽FatalErrorExceptionsyntax error, unexpected '?'

in聽DataTableAbstract.php聽(line 624)

invalid

Most helpful comment

Check in DataTableAbscract.php in line 624
Change this line
$this->serializer ?? null
to
isset($this->serializer) ? $this->serializer : null

Work in PHP 5.6

All 4 comments

I think this is php error. Make sure you are using at least PHP 7.

Check in DataTableAbscract.php in line 624
Change this line
$this->serializer ?? null
to
isset($this->serializer) ? $this->serializer : null

Work in PHP 5.6

thanks for helping @alfenfebral

Check in DataTableAbscract.php in line 624
Change this line
$this->serializer ?? null
to
isset($this->serializer) ? $this->serializer : null

Work in PHP 5.6

thank you,

Was this page helpful?
0 / 5 - 0 ratings