Skip to content

Calling statically generating an error #36

Closed
@TheMonk

Description

@TheMonk

Hi,

Not sure if this is the right place. I've been trying to update aon older Laravel project and at the same time upgrade GeoCoder.

Here's the error I'm getting:
"Non-static method Geocoder\Geocoder::geocode() should not be called statically, assuming $this from incompatible context"

And it's being called from

$geocode = Geocoder::geocode($fullAddy);
$coords = $geocode->getCoordinates();

Any idea what could be causing the error? All docs seem to indicate this is the proper way to call Geocoder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions