Skip to content

Commit 7bea912

Browse files
committed
Merge pull request #5 from stof/patch-4
Add an array typehint for the Compound constructor
2 parents 3b40b7a + e438bd5 commit 7bea912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types/Compound.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class Compound implements Type
3131
*
3232
* @param Type[] $types
3333
*/
34-
public function __construct($types)
34+
public function __construct(array $types)
3535
{
3636
foreach ($types as $type) {
3737
if (!$type instanceof Type) {

0 commit comments

Comments
 (0)