"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/Finder/Finder.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

Finder.php  (symfony-4.4.14):Finder.php  (symfony-4.4.15)
skipping to change at line 443 skipping to change at line 443
* This can be slow as all the matching files and directories must be retrie ved for comparison. * This can be slow as all the matching files and directories must be retrie ved for comparison.
* *
* @param bool $useNaturalSort Whether to use natural sort or not, disabled by default * @param bool $useNaturalSort Whether to use natural sort or not, disabled by default
* *
* @return $this * @return $this
* *
* @see SortableIterator * @see SortableIterator
*/ */
public function sortByName(/* bool $useNaturalSort = false */) public function sortByName(/* bool $useNaturalSort = false */)
{ {
if (\func_num_args() < 1 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) { if (\func_num_args() < 1 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface && !$this instanceof \Mockery\MockI nterface) {
@trigger_error(sprintf('The "%s()" method will have a new "bool $use NaturalSort = false" argument in version 5.0, not defining it is deprecated sinc e Symfony 4.2.', __METHOD__), \E_USER_DEPRECATED); @trigger_error(sprintf('The "%s()" method will have a new "bool $use NaturalSort = false" argument in version 5.0, not defining it is deprecated sinc e Symfony 4.2.', __METHOD__), \E_USER_DEPRECATED);
} }
$useNaturalSort = 0 < \func_num_args() && func_get_arg(0); $useNaturalSort = 0 < \func_num_args() && func_get_arg(0);
$this->sort = $useNaturalSort ? Iterator\SortableIterator::SORT_BY_NAME_ NATURAL : Iterator\SortableIterator::SORT_BY_NAME; $this->sort = $useNaturalSort ? Iterator\SortableIterator::SORT_BY_NAME_ NATURAL : Iterator\SortableIterator::SORT_BY_NAME;
return $this; return $this;
} }
/** /**
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)