Skip to content

Commit

Permalink
Fixed scrutinizer issue (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 committed Aug 4, 2019
1 parent 93a3b53 commit e9ca85b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions classes/phing/Project.php
Expand Up @@ -785,18 +785,17 @@ public function executeTarget($targetName)
/**
* Helper function
*
* @param $fileName
* @param null $rootDir
* @param string $fileName
* @param PhingFile $rootDir
* @throws IOException
* @return \PhingFile
*/
public function resolveFile($fileName, $rootDir = null)
public function resolveFile(string $fileName, PhingFile $rootDir = null): PhingFile
{
if ($rootDir === null) {
return $this->fileUtils->resolveFile($this->basedir, $fileName);
} else {
return $this->fileUtils->resolveFile($rootDir, $fileName);
}
return $this->fileUtils->resolveFile($rootDir, $fileName);
}

/**
Expand Down

0 comments on commit e9ca85b

Please sign in to comment.