Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Renames a file or directory
rename(string $fromstring $to, ?resource $context null): bool
function move_uploaded_file($from$to)

{

    return 
\is_file($from) && \rename($from$to);

}
            $this->warn("Your RoadRunner binary version (<fg=red>$version</>) may be incompatible with Octane.");



            if (
$this->confirm('Should Octane download the latest RoadRunner binary version for your operating system?'true)) {

                
rename($roadRunnerBinary"$roadRunnerBinary.backup");



                try {

                    
$this->downloadRoadRunnerBinary();
                } catch (Throwable $e) {

                    
report($e);



                    
rename("$roadRunnerBinary.backup"$roadRunnerBinary);



                    return 
$this->warn('Unable to download RoadRunner binary. The HTTP request exception has been logged.');

                }