phingofficial/phing

PHP 8 deprecation issue (parameter order) in 2.16.4

Closed this issue · 1 comments

In phing 2.16.4, there is a PHP 8 deprecation notice: https://github.com/phingofficial/phing/blob/2.16.4/classes/phing/util/FileUtils.php

Deprecated: Required parameter $project follows optional parameter $overwrite in /code/vendor-bin/phing/vendor/phing/phing/classes/phing/util/FileUtils.php on line 98

/**
* Copies a file using filter chains.
*
* @param PhingFile $sourceFile
* @param PhingFile $destFile
* @param boolean $overwrite
* @param boolean $preserveLastModified
* @param array $filterChains
* @param Project $project
* @param integer $mode
* @param bool $preservePermissions
* @throws Exception
* @throws IOException
* @return void
*/
public function copyFile(
PhingFile $sourceFile,
PhingFile $destFile,
$overwrite = false,
$preserveLastModified = true,
&$filterChains = null,
Project $project,
$mode = 0755,
$preservePermissions = true
) {

mrook commented

Fixed in 03008b6.