php Laravel- A non well formed numeric value encountered (on string)
<p>I have two function in my controller and service. I want to call a function in service. Here is my code : </p>

<p><strong>Controller:</strong></p>

<pre><code>public function findNeighborhoodGet(): array
{
    $regionCenter = Request::get('region_center');
    $distanceService = \App::make('App\web\one\Infrastructure\Service\Google\Map');
    try {
        $userPoint = $distanceService-&gt;getOriginPoint($regionCenter);
    }
 .
 .
 .
 return $result
}
</code></pre>

<p><strong>my service (Map.php) :</strong></p>

<pre><code>public function getOriginPoint(string $origin):Point
{
    dd($origin);

    return $this-&gt;getPointObject($origin);
}
</code></pre>

<p>Actually , I get an error :</p>

<pre><code>A non well formed numeric value encountered 
</code></pre>

<p>at this line: 
<em>public function getOriginPoint(string $origin):Point</em></p>

<p>How to solve it?</p>