Neos 3.2 installation on HostEurope Server fails

I installed Neos 3.2 on a HostEurope server with the composer.
Composer finishes successfully.

But when I try to execute flow on the cli, i get a weird error:

$ php7.0 flow

Parse error: syntax error, unexpected ':', expecting ';' or '{' in
on line 30

  Type: Neos\Flow\Core\Booting\Exception\SubProcessException
  Code: 1355480641
  File: Packages/Framework/Neos.Flow/Classes/Core/Booting/Scripts.php
  Line: 612

Open Data/Logs/Exceptions/2017102603032503578a.txt for a full stack trace.

This is the PHP version:

$ php7.0 -v
PHP 7.0.23-he.0 (cli) (built: Sep  1 2017 11:01:53) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from (unconfigured) v6.0.9, Copyright (c) 2002-2016, by ionCube Ltd.
    with Zend OPcache v7.0.23-he.0, Copyright (c) 1999-2017, by Zend Technologies

That’s odd, the error hints at the PHP version not understanding return typehints, which PHP 7 should:
public static function getUnixStylePath(string $path): string

So my guess is, that the subprocess for compiling is started with a different PHP binary. Please check if you have the Neos.Flow.phpBinaryPathAndFilename specified in your Settings.yaml and if not, do it to point at the php7.0 binary.

Thank you. That was indeed the problem.

I just struggled a bit because of I had to delete the cache folders by hand.
I removed the folder Data/Temporary/Development. Was that the right way?

Yes, that is the failure proof way. Alternatively there is the ./flow flow:cache:flush [--force] command line, which should lead to the same result, but depending on if the flow setup is broken (and hence CLI commands not working), this can sometimes not be an option.