mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
Revert "Reducing conflicts with other libraries like illuminate/support by wrapping the tap method in a function_exists conditional."
This reverts commit 8d74945391.
This commit is contained in:
@@ -108,20 +108,18 @@ function should_be_sudo()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! function_exists('tap')) {
|
/**
|
||||||
/**
|
|
||||||
* Tap the given value.
|
* Tap the given value.
|
||||||
*
|
*
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @param callable $callback
|
* @param callable $callback
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
function tap($value, callable $callback)
|
function tap($value, callable $callback)
|
||||||
{
|
{
|
||||||
$callback($value);
|
$callback($value);
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user