Skip to content

Commit f30006f

Browse files
committed
constructor does not occur warning in this case
1 parent bf2692b commit f30006f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Enum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ abstract class Enum
6060
* @param null|bool|int|float|string|array<mixed> $value The value of the enumerator
6161
* @param int|null $ordinal The ordinal number of the enumerator
6262
*/
63-
private function __construct($value, $ordinal = null)
63+
final private function __construct($value, $ordinal = null)
6464
{
6565
$this->value = $value;
6666
$this->ordinal = $ordinal;

0 commit comments

Comments
 (0)