Laravel 9 Update (#1413)

Update to Laravel 9 and PHP 8+

Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
This commit is contained in:
Nabeel S
2022-03-14 11:45:18 -04:00
committed by GitHub
parent 00bf18c225
commit 12848091a2
340 changed files with 6130 additions and 4502 deletions

View File

@@ -7,7 +7,7 @@ use Spatie\Valuestore\Valuestore;
class IdMapper extends Service
{
private $valueStore;
private Valuestore $valueStore;
public function __construct()
{
@@ -21,7 +21,7 @@ class IdMapper extends Service
* @param string $old_id
* @param string $new_id
*/
public function addMapping($entity, $old_id, $new_id)
public function addMapping(string $entity, string $old_id, string $new_id)
{
$key_name = $entity.'_'.$old_id;
if (!$this->valueStore->has($key_name)) {
@@ -37,7 +37,7 @@ class IdMapper extends Service
*
* @return bool
*/
public function getMapping($entity, $old_id)
public function getMapping($entity, $old_id): bool|int
{
$key_name = $entity.'_'.$old_id;
if (!$this->valueStore->has($key_name)) {