Commit aee37f3e authored by Marc Addeo's avatar Marc Addeo Committed by Vishal Khode
Browse files

Issue #3296262: Fix deprecation warnings in RecursiveComponentFilterIterator

parent 37587c91
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ class RecursiveComponentFilterIterator extends \RecursiveFilterIterator {
  /**
   * {@inheritdoc}
   */
  public function getChildren() {
  public function getChildren(): ?\RecursiveFilterIterator {
    $filter = parent::getChildren();
    // Pass on the blocklist.
    $filter->blocklist = $this->blocklist;
@@ -97,7 +97,7 @@ class RecursiveComponentFilterIterator extends \RecursiveFilterIterator {
  /**
   * {@inheritdoc}
   */
  public function accept() {
  public function accept(): bool {
    $name = $this->current()->getFilename();
    // FilesystemIterator::SKIP_DOTS only skips '.' and '..', but not hidden
    // directories (like '.git').