Skip to content

Commit c90dc44

Browse files
Merge branch '6.1' into 6.2
* 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
2 parents eba9fbf + 1efd836 commit c90dc44

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Tests/Iterator/DepthRangeFilterIteratorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ public function getAcceptData()
9595
];
9696

9797
return [
98-
[0, 0, $this->toAbsolute($lessThan1)],
99-
[0, 1, $this->toAbsolute($lessThanOrEqualTo1)],
98+
[0, 0, static::toAbsolute($lessThan1)],
99+
[0, 1, static::toAbsolute($lessThanOrEqualTo1)],
100100
[2, \PHP_INT_MAX, []],
101-
[1, \PHP_INT_MAX, $this->toAbsolute($graterThanOrEqualTo1)],
102-
[1, 1, $this->toAbsolute($equalTo1)],
101+
[1, \PHP_INT_MAX, static::toAbsolute($graterThanOrEqualTo1)],
102+
[1, 1, static::toAbsolute($equalTo1)],
103103
];
104104
}
105105
}

Tests/Iterator/ExcludeDirectoryFilterIteratorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ public function getAcceptData()
105105
];
106106

107107
return [
108-
[['foo'], $this->toAbsolute($foo)],
109-
[['fo'], $this->toAbsolute($fo)],
110-
[['toto/'], $this->toAbsolute($toto)],
108+
[['foo'], static::toAbsolute($foo)],
109+
[['fo'], static::toAbsolute($fo)],
110+
[['toto/'], static::toAbsolute($toto)],
111111
];
112112
}
113113
}

Tests/Iterator/FileTypeFilterIteratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public function getAcceptData()
5959
];
6060

6161
return [
62-
[FileTypeFilterIterator::ONLY_FILES, $this->toAbsolute($onlyFiles)],
63-
[FileTypeFilterIterator::ONLY_DIRECTORIES, $this->toAbsolute($onlyDirectories)],
62+
[FileTypeFilterIterator::ONLY_FILES, static::toAbsolute($onlyFiles)],
63+
[FileTypeFilterIterator::ONLY_DIRECTORIES, static::toAbsolute($onlyDirectories)],
6464
];
6565
}
6666
}

Tests/Iterator/SortableIteratorTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,13 @@ public function getAcceptData()
261261
];
262262

263263
return [
264-
[SortableIterator::SORT_BY_NAME, $this->toAbsolute($sortByName)],
265-
[SortableIterator::SORT_BY_TYPE, $this->toAbsolute($sortByType)],
266-
[SortableIterator::SORT_BY_ACCESSED_TIME, $this->toAbsolute($sortByAccessedTime)],
267-
[SortableIterator::SORT_BY_CHANGED_TIME, $this->toAbsolute($sortByChangedTime)],
268-
[SortableIterator::SORT_BY_MODIFIED_TIME, $this->toAbsolute($sortByModifiedTime)],
269-
[SortableIterator::SORT_BY_NAME_NATURAL, $this->toAbsolute($sortByNameNatural)],
270-
[function (\SplFileInfo $a, \SplFileInfo $b) { return strcmp($a->getRealPath(), $b->getRealPath()); }, $this->toAbsolute($customComparison)],
264+
[SortableIterator::SORT_BY_NAME, static::toAbsolute($sortByName)],
265+
[SortableIterator::SORT_BY_TYPE, static::toAbsolute($sortByType)],
266+
[SortableIterator::SORT_BY_ACCESSED_TIME, static::toAbsolute($sortByAccessedTime)],
267+
[SortableIterator::SORT_BY_CHANGED_TIME, static::toAbsolute($sortByChangedTime)],
268+
[SortableIterator::SORT_BY_MODIFIED_TIME, static::toAbsolute($sortByModifiedTime)],
269+
[SortableIterator::SORT_BY_NAME_NATURAL, static::toAbsolute($sortByNameNatural)],
270+
[function (\SplFileInfo $a, \SplFileInfo $b) { return strcmp($a->getRealPath(), $b->getRealPath()); }, static::toAbsolute($customComparison)],
271271
];
272272
}
273273
}

0 commit comments

Comments
 (0)