Add tap function
This commit is contained in:
parent
21d3dc49ff
commit
e4c004d3ad
|
@ -24,7 +24,8 @@
|
|||
"autoload": {
|
||||
"psr-4": {
|
||||
"FormatTalksBundle\\": "src/FormatTalksBundle"
|
||||
}
|
||||
},
|
||||
"files": ["src/helpers.php"]
|
||||
},
|
||||
"extra": {
|
||||
"merge-plugin": {
|
||||
|
|
7
src/helpers.php
Normal file
7
src/helpers.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
function tap($value, $callback) {
|
||||
$callback($value);
|
||||
|
||||
return $value;
|
||||
}
|
Loading…
Reference in a new issue