Syntax error, unexpected '$lock' (T_VARIABLE), expecting function (T_FUNCTION)

here is my problem

Are you running Grav from github? Can you try doing a composer update from the Grav main folder?

I download Grav core+ plugin admin and run Grav whith MobaXTerm

Hi, it seams like a really strange error. Maybe this is connected with your PHP version? Further it can be due to a corrupted file. Can you double-check this?

If nothing helps, maybe it then has to do something with the syntax being used at line L205, File.php. You may try with

$lock = $block ? LOCK_EX : (LOCK_EX | LOCK_NB);

but I don’t know whether this helps.