for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Stratadox\Sorting;
use Stratadox\Sorting\Contracts\Sorting;
/**
* Do not sort at all.
*
* Null object, used to define that no sorting should take place.
* @author Stratadox
* @package Stratadox\Sorting
* @deprecated use NoSorting::needed() instead.
* @see NoSorting
*/
final class DoNotSort implements Sorting
{
private function __construct()
}
/** @deprecated */
public static function atAll(): Sorting
return new DoNotSort;
Stratadox\Sorting\DoNotSort
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
return /** @scrutinizer ignore-deprecated */ new DoNotSort;
public function field(): string
return '';
public function next(): Sorting
return $this;
public function ascends(): bool
return false;
public function isRequired(): bool