Skip to content

Commit

Permalink
Merge branch '5.4' into 6.0
Browse files Browse the repository at this point in the history
* 5.4:
  Update ComposerPlugin.php
  [Notifier] [OvhCloud] handle invalid receiver
  [Cache] fix collecting cache stats when nesting computations
  [VarDumper] Fix JS to expand / collapse
  [Tests] Remove `$this` occurrences in future static data providers
  • Loading branch information
nicolas-grekas committed Jan 20, 2023
2 parents 47446ca + 6071aeb commit 5cc9cac
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions Tests/Iterator/DepthRangeFilterIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ public function getAcceptData()
];

return [
[0, 0, $this->toAbsolute($lessThan1)],
[0, 1, $this->toAbsolute($lessThanOrEqualTo1)],
[0, 0, static::toAbsolute($lessThan1)],
[0, 1, static::toAbsolute($lessThanOrEqualTo1)],
[2, \PHP_INT_MAX, []],
[1, \PHP_INT_MAX, $this->toAbsolute($graterThanOrEqualTo1)],
[1, 1, $this->toAbsolute($equalTo1)],
[1, \PHP_INT_MAX, static::toAbsolute($graterThanOrEqualTo1)],
[1, 1, static::toAbsolute($equalTo1)],
];
}
}
6 changes: 3 additions & 3 deletions Tests/Iterator/ExcludeDirectoryFilterIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public function getAcceptData()
];

return [
[['foo'], $this->toAbsolute($foo)],
[['fo'], $this->toAbsolute($fo)],
[['toto/'], $this->toAbsolute($toto)],
[['foo'], static::toAbsolute($foo)],
[['fo'], static::toAbsolute($fo)],
[['toto/'], static::toAbsolute($toto)],
];
}
}
4 changes: 2 additions & 2 deletions Tests/Iterator/FileTypeFilterIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public function getAcceptData()
];

return [
[FileTypeFilterIterator::ONLY_FILES, $this->toAbsolute($onlyFiles)],
[FileTypeFilterIterator::ONLY_DIRECTORIES, $this->toAbsolute($onlyDirectories)],
[FileTypeFilterIterator::ONLY_FILES, static::toAbsolute($onlyFiles)],
[FileTypeFilterIterator::ONLY_DIRECTORIES, static::toAbsolute($onlyDirectories)],
];
}
}
Expand Down
14 changes: 7 additions & 7 deletions Tests/Iterator/SortableIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@ public function getAcceptData()
];

return [
[SortableIterator::SORT_BY_NAME, $this->toAbsolute($sortByName)],
[SortableIterator::SORT_BY_TYPE, $this->toAbsolute($sortByType)],
[SortableIterator::SORT_BY_ACCESSED_TIME, $this->toAbsolute($sortByAccessedTime)],
[SortableIterator::SORT_BY_CHANGED_TIME, $this->toAbsolute($sortByChangedTime)],
[SortableIterator::SORT_BY_MODIFIED_TIME, $this->toAbsolute($sortByModifiedTime)],
[SortableIterator::SORT_BY_NAME_NATURAL, $this->toAbsolute($sortByNameNatural)],
[function (\SplFileInfo $a, \SplFileInfo $b) { return strcmp($a->getRealPath(), $b->getRealPath()); }, $this->toAbsolute($customComparison)],
[SortableIterator::SORT_BY_NAME, static::toAbsolute($sortByName)],
[SortableIterator::SORT_BY_TYPE, static::toAbsolute($sortByType)],
[SortableIterator::SORT_BY_ACCESSED_TIME, static::toAbsolute($sortByAccessedTime)],
[SortableIterator::SORT_BY_CHANGED_TIME, static::toAbsolute($sortByChangedTime)],
[SortableIterator::SORT_BY_MODIFIED_TIME, static::toAbsolute($sortByModifiedTime)],
[SortableIterator::SORT_BY_NAME_NATURAL, static::toAbsolute($sortByNameNatural)],
[function (\SplFileInfo $a, \SplFileInfo $b) { return strcmp($a->getRealPath(), $b->getRealPath()); }, static::toAbsolute($customComparison)],
];
}
}

0 comments on commit 5cc9cac

Please sign in to comment.