Skip to content

Commit 6873f10

Browse files
committed
type-hint
1 parent 1058fca commit 6873f10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Enum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use LogicException;
1010

1111
/**
12-
* Class to implement enumerations for PHP 5 (without SplEnum)
12+
* Abstract base enumeration class.
1313
*
1414
* @copyright 2019 Marc Bennewitz
1515
* @license http://github.com/marc-mabe/php-enum/blob/master/LICENSE.txt New BSD License
@@ -58,7 +58,7 @@ abstract class Enum
5858
* @param null|bool|int|float|string|array $value The value of the enumerator
5959
* @param int|null $ordinal The ordinal number of the enumerator
6060
*/
61-
final private function __construct($value, $ordinal = null)
61+
final private function __construct($value, int $ordinal = null)
6262
{
6363
$this->value = $value;
6464
$this->ordinal = $ordinal;

0 commit comments

Comments
 (0)