We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1058fca commit 6873f10Copy full SHA for 6873f10
src/Enum.php
@@ -9,7 +9,7 @@
9
use LogicException;
10
11
/**
12
- * Class to implement enumerations for PHP 5 (without SplEnum)
+ * Abstract base enumeration class.
13
*
14
* @copyright 2019 Marc Bennewitz
15
* @license http://github.com/marc-mabe/php-enum/blob/master/LICENSE.txt New BSD License
@@ -58,7 +58,7 @@ abstract class Enum
58
* @param null|bool|int|float|string|array $value The value of the enumerator
59
* @param int|null $ordinal The ordinal number of the enumerator
60
*/
61
- final private function __construct($value, $ordinal = null)
+ final private function __construct($value, int $ordinal = null)
62
{
63
$this->value = $value;
64
$this->ordinal = $ordinal;
0 commit comments