Skip to content

Commit

Permalink
Merge branch '6.1' into 6.2
Browse files Browse the repository at this point in the history
* 6.1:
  Update ComposerPlugin.php
  [Notifier] [OvhCloud] handle invalid receiver
  [Cache] fix collecting cache stats when nesting computations
  [VarDumper] Fix JS to expand / collapse
  [Validator] Fix Email validator logic
  Fix user_identifier support after username has been deprecated in favor of it.
  [Tests] Remove `$this` occurrences in future static data providers
  [PropertyInfo] Fixes constructor extractor for mixed type
  use method_exists() instead of catching reflection exceptions
  • Loading branch information
nicolas-grekas committed Jan 20, 2023
2 parents eba9fbf + 1efd836 commit c90dc44
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 @@ -95,11 +95,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 @@ -105,9 +105,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 @@ -59,8 +59,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 @@ -261,13 +261,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 c90dc44

Please sign in to comment.