Open tuktukvlad opened 1 year ago
This repository maybe dead. They didn't update for very long time. Even the repo name geographer-data still didn't update. For example: Turkey had already changed to Türkiye (as I remember, since 2022). You may try stefangabos/world_countries as they are very up to date but they just don't have nice PHP API like this one.
Howdy! Fortunatelly this issue has been fixed in PRs, that has been already merged to the master
branch of this repo by maintainer:
So, scince last Release in this repo has been created 2 yers ago, to fix the issue in your project, that depends from this (MenaraSolutions/geographer
) package, you need to:
composer.json
{
"name": "you/your-awsome-project",
"require": {
"menarasolutions/geographer": "dev-master"
}
}
composer update menarasolutions/geographer
Return type of MenaraSolutions\Geographer\Divisible::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../vendor/menarasolutions/geographer/src/Traits/ExposesFields.php on line 46
Return type of MenaraSolutions\Geographer\Collections\Traits\ImplementsArray::unserialize($serialized) should either be compatible with ArrayObject::unserialize(string $data): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../vendor/menarasolutions/geographer/src/Collections/Traits/ImplementsArray.php on line 74