You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have got an error message when I am trying php artisan opcache:compile --force
It's a fresh laravel install with a test controller and route.
Controller:
`namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WelcomeController extends Controller
{
//
public function index(){
return view('welcome');
}
} Routes:Route::get('/', 'WelcomeController@index');`
Official docker php image, version 7.3.8
Error message "syntax error, unexpected '\' (T_NS_SEPARATOR), expecting function (T_FUNCTION) or const (T_CONST)"
Do you have any idea?
Thanks
The text was updated successfully, but these errors were encountered:
OK I have found the problem.
I have php 7.3.8
Laravel contains symfony/var-dumper/Tests/Fixtures/Php74
This class contains php 7.4 specified typed property. It is normal when laravel-opcache pachage try to cache this file on 7.3 and I get an error message.
Do you have idea how can I ignore this file manually?
Hi,
I have got an error message when I am trying
php artisan opcache:compile --force
It's a fresh laravel install with a test controller and route.
Controller:
`namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WelcomeController extends Controller
{
//
public function index(){
return view('welcome');
}
}
Routes:
Route::get('/', 'WelcomeController@index');`Official docker php image, version 7.3.8
Error message
"syntax error, unexpected '\' (T_NS_SEPARATOR), expecting function (T_FUNCTION) or const (T_CONST)"
Do you have any idea?
Thanks
The text was updated successfully, but these errors were encountered: