Upgrade code - step 1

This commit is contained in:
Fernando Ontiveros
2025-03-27 12:06:06 +00:00
parent fbd92c5964
commit 7f3ee186de
47635 changed files with 5941896 additions and 1779 deletions

View File

@@ -817,7 +817,7 @@ class Phing {
$classFile = strtr($dotClassname, '.', DIRECTORY_SEPARATOR) . ".php";
$path = substr_replace($dotPath, $classFile, $dotClassnamePos);
Phing::__import($path, $classpath);
Phing::importPhing($path, $classpath);
return $classname;
}
@@ -828,7 +828,7 @@ class Phing {
* @param mixed $classpath String or object supporting __toString()
* @throws BuildException - if cannot find the specified file
*/
public static function __import($path, $classpath = null) {
public static function importPhing($path, $classpath = null) {
if ($classpath) {

View File

@@ -150,7 +150,7 @@ class CoverageSetupTask extends TaskPhing
xdebug_start_code_coverage(XDEBUG_CC_UNUSED);
Phing::__import($fullname, $this->classpath);
Phing::importPhing($fullname, $this->classpath);
$coverage = xdebug_get_code_coverage();

View File

@@ -92,7 +92,7 @@ class PHPUnit2Util
return self::$definedClasses[$filename];
}
Phing::__import($filename, $classpath);
Phing::importPhing($filename, $classpath);
$declaredClasses = get_declared_classes();

View File

@@ -254,7 +254,7 @@ class CvsTask extends TaskPhing {
$c = $this->getCommand();
$cloned = null;
if ($c !== null) {
$cloned = $this->cmd->__copy();
$cloned = $this->cmd->copyPhing();
$cloned->createArgument(true)->setLine($c);
$this->addConfiguredCommandline($cloned, true);
}

View File

@@ -270,7 +270,7 @@ class Commandline {
return count($this->getCommandline());
}
public function __copy() {
public function copyPhing() {
$c = new Commandline();
$c->setExecutable($this->executable);
$c->addArguments($this->getArguments());