Skip to content

Commit 65b93aa

Browse files
committed
Revert "Reducing conflicts with other libraries like illuminate/support by wrapping the tap method in a function_exists conditional."
This reverts commit 8d74945.
1 parent 8d74945 commit 65b93aa

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

cli/includes/helpers.php

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,18 @@ function should_be_sudo()
108108
}
109109
}
110110

111-
if (! function_exists('tap')) {
112-
/**
113-
* Tap the given value.
114-
*
115-
* @param mixed $value
116-
* @param callable $callback
117-
* @return mixed
118-
*/
119-
function tap($value, callable $callback)
120-
{
121-
$callback($value);
122-
123-
return $value;
124-
}
111+
/**
112+
* Tap the given value.
113+
*
114+
* @param mixed $value
115+
* @param callable $callback
116+
* @return mixed
117+
*/
118+
function tap($value, callable $callback)
119+
{
120+
$callback($value);
121+
122+
return $value;
125123
}
126124

127125
/**

0 commit comments

Comments
 (0)