mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-13 18:34:06 +02:00
update deps & install rector
This commit is contained in:
@@ -4,12 +4,6 @@ namespace DesignPatterns\Behavioral\Strategy;
|
||||
|
||||
class IdComparator implements Comparator
|
||||
{
|
||||
/**
|
||||
* @param mixed $a
|
||||
* @param mixed $b
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function compare($a, $b): int
|
||||
{
|
||||
return $a['id'] <=> $b['id'];
|
||||
|
Reference in New Issue
Block a user