Skip to content

Commit adcd73e

Browse files
author
Marc Bennewitz
committed
fixes #30 rm second argument of EnumSet::attach
It will not be a bc break as the argument wasn't used and it was optional. If someone calls the method with a second argument PHP simply ignores it.
1 parent 4bd842a commit adcd73e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/MabeEnum/EnumSet.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,10 @@ public function getFlags()
8888
/**
8989
* Attach a new enumeration or overwrite an existing one
9090
* @param Enum|scalar $enum
91-
* @param mixed $data
9291
* @return void
9392
* @throws InvalidArgumentException On an invalid given enum
9493
*/
95-
public function attach($enum, $data = null)
94+
public function attach($enum)
9695
{
9796
$this->initEnum($enum);
9897
$ordinal = $enum->getOrdinal();

0 commit comments

Comments
 (0)