File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ final public function getOrdinal()
124124 * Get an enum of the given value
125125 *
126126 * @param null|boolean|int|float|string $value
127- * @return Enum
127+ * @return static
128128 * @throws InvalidArgumentException On an unknwon or invalid value
129129 * @throws LogicException On ambiguous constant values
130130 */
@@ -152,7 +152,7 @@ final static public function get($value)
152152 * Get an enum by the given name
153153 *
154154 * @param string $name The name to instantiate the enum by
155- * @return Enum
155+ * @return static
156156 * @throws InvalidArgumentException On an invalid or unknown name
157157 * @throws LogicException On ambiguous constant values
158158 */
@@ -176,7 +176,7 @@ final public static function getByName($name)
176176 * Get an enum by the given ordinal number
177177 *
178178 * @param int $ordinal The ordinal number to instantiate the enum by
179- * @return Enum
179+ * @return static
180180 * @throws InvalidArgumentException On an invalid ordinal number
181181 * @throws LogicException On ambiguous constant values
182182 */
@@ -274,7 +274,7 @@ static private function detectConstants($class)
274274 *
275275 * @param string $method The name to instantiate the enum by (called as method)
276276 * @param array $args There should be no arguments
277- * @return Enum
277+ * @return static
278278 * @throws InvalidArgumentException On an invalid or unknown name
279279 * @throws LogicException On ambiguous constant values
280280 */
You can’t perform that action at this time.
0 commit comments