projects
/
php-functional.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52395d1
)
Fixing Code Standards violations
author
Thomas Ploch
<thomas.ploch@flixbus.com>
Wed, 13 Dec 2017 17:42:12 +0000
(18:42 +0100)
committer
Thomas Ploch
<thomas.ploch@flixbus.com>
Wed, 13 Dec 2017 17:42:12 +0000
(18:42 +0100)
src/Primitive/Listt.php
patch
|
blob
|
history
diff --git
a/src/Primitive/Listt.php
b/src/Primitive/Listt.php
index
cbadbbb
..
22e3fa8
100644
(file)
--- a/
src/Primitive/Listt.php
+++ b/
src/Primitive/Listt.php
@@
-172,12
+172,14
@@
class Listt implements
*
* @throws \BadMethodCallException
*/
- public function tail():
Listt
+ public function tail():
self
{
($generator = $this->guardEmptyGenerator('tail of empty Listt'))->next();
return $generator->valid()
- ? self::of((function ($values) { yield from $values; })($generator))
+ ? self::of((function ($values) {
+ yield from $values;
+ })($generator))
: self::mempty();
}