Skip to content

Commit 55fc574

Browse files
committed
Merge branch '5.x' into 6.x
2 parents de0fcad + d5acc95 commit 55fc574

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CakePHP Upgrade tool
22

33
[![CI](https://github.com/cakephp/upgrade/actions/workflows/ci.yml/badge.svg)](https://github.com/cakephp/upgrade/actions/workflows/ci.yml)
4-
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.1-8892BF.svg)](https://php.net/)
4+
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.2-8892BF.svg)](https://php.net/)
55
[![License](https://poser.pugx.org/cakephp/upgrade/license.svg)](LICENSE)
66

77
Upgrade tools for CakePHP meant to facilitate migrating between CakePHP 4.x

src/Command/FileRenameCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Cake\Console\ConsoleIo;
2222
use Cake\Console\ConsoleOptionParser;
2323
use Cake\Core\Configure;
24+
use Cake\Core\Exception\CakeException;
2425
use DirectoryIterator;
2526
use RecursiveDirectoryIterator;
2627
use RecursiveIteratorIterator;
@@ -309,7 +310,7 @@ protected function renameWithCasing(string $source, string $dest): void
309310
* @param string $source Source path.
310311
* @param string $dest Destination path.
311312
* @return void
312-
* @throws \Cake\Error\FatalErrorException When we're unable to move the folder via git.
313+
* @throws \Cake\Core\Exception\CakeException When we're unable to move the folder via git.
313314
*/
314315
protected function rename(string $source, string $dest): void
315316
{
@@ -332,7 +333,7 @@ protected function rename(string $source, string $dest): void
332333
$returnVar = null;
333334
$lastLine = exec("git mv $source $dest", $gitOutput, $returnVar);
334335
if ($returnVar) {
335-
throw new FatalErrorException(sprintf(
336+
throw new CakeException(sprintf(
336337
'Unable to move: %s to : %s - Reason: %s - Hint: Maybe you have uncommited changes in git.',
337338
$source,
338339
$dest,

0 commit comments

Comments
 (0)