Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 9309f4e

Browse files
committed
Remove yield statements
- Again, still supporting PHP 5.4. *sigh*
1 parent 28f7983 commit 9309f4e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/MessageTraitTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,9 @@ public function invalidHeaderValueTypes()
314314

315315
public function invalidArrayHeaderValues()
316316
{
317-
yield 'array' => [['INVALID']];
318-
319-
foreach ($this->invalidHeaderValueTypes() as $type => $args) {
320-
yield $type => $args;
321-
}
317+
$values = $this->invalidHeaderValueTypes();
318+
$values['array'] = [['INVALID']];
319+
return $values;
322320
}
323321

324322
/**

0 commit comments

Comments
 (0)