我的控制器和服务有两个功能.我想调用正在使用的函数.这是我的代码:
Controller:
public function findNeighborhoodGet(): array
{
$regionCenter = Request::get('region_center');
$distanceService = \App::make('App\web\one\Infrastructure\Service\Google\Map');
try {
$userPoint = $distanceService->getOriginPoint($regionCenter);
}
.
.
.
return $result
}
my service (Map.php) :
public function getOriginPoint(string $origin):Point
{
dd($origin);
return $this->getPointObject($origin);
}
实际上,我收到一个错误:
A non well formed numeric value encountered
在这条线上: public function getOriginPoint(string $origin):Point个
如何解决呢?