Refactor getRedirectUrl method to ensure URL is treated as a string
This commit is contained in:
@@ -23,7 +23,7 @@ class CreateCardOrder extends CreateRecord
|
|||||||
|
|
||||||
protected function getRedirectUrl(): string
|
protected function getRedirectUrl(): string
|
||||||
{
|
{
|
||||||
$defaultUrl = $this->getResource()::getUrl('index');
|
$defaultUrl = string($this->getResource()::getUrl('index'));
|
||||||
|
|
||||||
/** @var \App\Modules\CardOrder\Models\CardOrder */
|
/** @var \App\Modules\CardOrder\Models\CardOrder */
|
||||||
$record = $this->record;
|
$record = $this->record;
|
||||||
|
|||||||
Reference in New Issue
Block a user