Lines Matching defs:left
14 * @param mixed $left
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;
31 * @param array<mixed> $left
34 private static function deeplyEquals(array $left, array $right) : bool
36 if ($left === $right) {
40 if (\count($left) !== \count($right)) {
44 foreach ($left as $key => $value) {