Skip to content

Commit

Permalink
PHP 8.1: fix more return type deprecation warnings (#10039)
Browse files Browse the repository at this point in the history
Follow up on 10008 and the various commits made for that.

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
  • Loading branch information
jrfnl and jrfnl committed Aug 11, 2021
1 parent f5a0dfe commit c7d11f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Composer/Package/Archiver/ArchivableFilesFilter.php
Expand Up @@ -22,6 +22,7 @@ class ArchivableFilesFilter extends FilterIterator
/**
* @return bool true if the current element is acceptable, otherwise false.
*/
#[\ReturnTypeWillChange]
public function accept()
{
$file = $this->getInnerIterator()->current();
Expand Down
1 change: 1 addition & 0 deletions src/Composer/Package/Archiver/ArchivableFilesFinder.php
Expand Up @@ -89,6 +89,7 @@ public function __construct($sources, array $excludes, $ignoreFilters = false)
parent::__construct($this->finder->getIterator());
}

#[\ReturnTypeWillChange]
public function accept()
{
/** @var SplFileInfo $current */
Expand Down

0 comments on commit c7d11f3

Please sign in to comment.