Skip to content

Commit

Permalink
fixed some PHP8.4 deprecations (#1888)
Browse files Browse the repository at this point in the history
Co-authored-by: Juris Malinens <[email protected]>
  • Loading branch information
jmalinens and Juris Malinens authored Dec 16, 2024
1 parent b00dfb5 commit 90bac47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Phing/Io/FileUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public function dissect(string $path): array
public function createTempFile(
$prefix,
$suffix,
File $parentDir = null,
?File $parentDir = null,
$deleteOnExit = false,
$createFile = false
): File {
Expand Down
6 changes: 3 additions & 3 deletions src/Phing/Parser/ElementHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public function __construct(
AbstractSAXParser $parser,
AbstractHandler $parentHandler,
ProjectConfigurator $configurator,
UnknownElement $parent = null,
RuntimeConfigurable $parentWrapper = null,
Target $target = null
?UnknownElement $parent = null,
?RuntimeConfigurable $parentWrapper = null,
?Target $target = null
) {
parent::__construct($parser, $parentHandler);
$this->configurator = $configurator;
Expand Down

0 comments on commit 90bac47

Please sign in to comment.