Skip to content

Commit

Permalink
Fixed condition (#1334)
Browse files Browse the repository at this point in the history
This commit will fix a bug but leaves open a failing test.
  • Loading branch information
siad007 authored May 1, 2020
1 parent f3b68bc commit 1117df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/phing/parser/ProjectConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public static function configure($target, $attrs, Project $project)
continue;
// throw new BuildException("Id must be set Extermnally");
}
if (method_exists($value, 'main')) {
if (!is_string($value) && method_exists($value, 'main')) {
$value = $value->main();
} else {
$value = $project->replaceProperties($value);
Expand Down

0 comments on commit 1117df5

Please sign in to comment.