From 3e654f5d3cf60880483c005ae8eb4857edaef342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Sat, 11 Sep 2021 22:42:26 +0200 Subject: [PATCH] BaseEnum : Remove unused __call --- src/BaseEnum.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/BaseEnum.php b/src/BaseEnum.php index a777ccb..3e10d6f 100644 --- a/src/BaseEnum.php +++ b/src/BaseEnum.php @@ -68,22 +68,6 @@ abstract class BaseEnum implements JsonSerializable return static::make($name); } - /** - * @param string $name - * @param array $arguments - * @return bool|mixed - * @throws TypeError If anything else thant string or int is used. - * @throws BadMethodCallException If a matching definition cannot be found. - */ - public function __call(string $name, array $arguments) - { - if (strpos($name, 'is') === 0) { - $other = static::make(substr($name, 2)); - return $this->equals($other); - } - return self::__callStatic($name, $arguments); - } - /** * Output the value as a string * @return string