Okipa / laravel-table

Generate tables from Eloquent models.
MIT License
532 stars 64 forks source link

syntax error, unexpected 'bool' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) #49

Closed sannevanleeuwen closed 4 years ago

sannevanleeuwen commented 4 years ago

I got an issue: syntax error, unexpected 'bool' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

::Composer\Autoload\includeFile vendor/okipa/laravel-table/src/Table.php:41

protected bool $configured = false;

Okipa commented 4 years ago

Hi @sannevanleeuwen,

I have no info regarding the environnement, the context or anything that could help me to find what could cause the error.

Could you fork the projet and write a test that put the error in evidence ?

Or at least give more data ? Right know I can't do anything

sannevanleeuwen commented 4 years ago

I found the problem, it was the php version. I updated it from 7.2 to 7.4