Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to find this Client.php laravel

Tags:

laravel-5

I upgraded my php version in WSL to 7.4 and I am running an application built with laravel-5.5.

When I run php artisan in the command line I got this error

In Client.php line 1551:

Undefined variable: version

There are many $version available where do I find this Client.php this error talking about?

There is no log record in the log about this.

Thanks

like image 294
Fil Avatar asked Dec 03 '19 10:12

Fil


People also ask

What is client in Laravel?

The Laravel HTTP client allows you to define "macros", which can serve as a fluent, expressive mechanism to configure common request paths and headers when interacting with services throughout your application.

How do I find my device IP in Laravel?

For getting the IP Address we have to include use Illuminate\Http\Request; in the controller and then add the code of the below pre tag. It will give the IP address of the network. $clientIP = \Request::ip(); dd($clientIP);

What is PHP HTTP client?

PHP-HTTP is the next step in standardizing HTTP interaction for PHP packages. It builds on top of PSR-7, which defines interfaces for HTTP requests and responses. The HTTPlug HTTP client interface has been standardized in PSR-18 to define synchronous HTTP requests.

How do I find my MAC address in Laravel?

To get the MAC address, pass the parameter 'getmac' which returns the MAC address of the client. 'getmac' is a CMD command to get the MAC address. To get the MAC address, we use exec() function. $macAddr = exec('getmac');


1 Answers

To do solve this temporarily I did this

return $version ?? '0.0.0';

on vendor\sentry\sentry\lib\Raven\Client.php:1551

and change $path{0} to $path[0]

on vendor\sentry\sentry\lib\Raven\Client.php:331

like image 93
Fil Avatar answered Oct 02 '22 11:10

Fil