I'm using Laravel 5.2 and PHP 7.1, but I get an error when I'm trying to use Tinker.
When I run:
php artisan tinker
I get the following error:
[Symfony\Component\Debug\Exception\FatalThrowableError] Call to undefined function Laravel\Tinker\tap()
I upgraded my Laravel from 5.2 to 5.5, but most of my previous functionality doesn't work. I reverted to 5.2, but I am still getting this error.