Lines Matching defs:right
15 * @param mixed $right
17 public static function equals($left, $right) : bool
19 if ($left instanceof Equatable && $right instanceof Equatable) {
20 return $left->equals($right);
23 if (\is_array($left) && \is_array($right)) {
24 return self::deeplyEquals($left, $right);
27 return $left === $right;
32 * @param array<mixed> $right
34 private static function deeplyEquals(array $left, array $right) : bool
36 if ($left === $right) {
40 if (\count($left) !== \count($right)) {
45 if (!isset($right[$key])) {
49 if (!self::equals($value, $right[$key])) {