Skip to content

Commit 4423253

Browse files
committed
Fix deprecation warnings in phar.php
1 parent 172f84b commit 4423253

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/phar/phar/directorytreeiterator.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DirectoryTreeIterator extends RecursiveIteratorIterator
3333

3434
/** @return the current element prefixed with ASCII graphics
3535
*/
36-
function current()
36+
function current(): mixed
3737
{
3838
$tree = '';
3939
for ($l=0; $l < $this->getDepth(); $l++) {

ext/phar/phar/invertedregexiterator.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class InvertedRegexIterator extends RegexIterator
1818
{
1919
/** @return !RegexIterator::accept()
2020
*/
21-
function accept()
21+
function accept(): bool
2222
{
2323
return !RegexIterator::accept();
2424
}

0 commit comments

Comments
 (0)