-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix error when loading order which has delivery options
also fixes various other errors
- Loading branch information
1 parent
be51225
commit 56722a4
Showing
6 changed files
with
235 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Gett\MyparcelBE\Model\Core; | ||
|
||
use OrderCore; | ||
|
||
/** | ||
* Overridden core Order class to allow circumventing some bugs when doing strict typing. | ||
*/ | ||
class Order extends OrderCore | ||
{ | ||
/** | ||
* @var int|string | ||
* @deprecated This is more often than not a string instead of int. Use getId() instead. | ||
*/ | ||
public $id; | ||
|
||
/** | ||
* @var int|string | ||
* @deprecated This is more often than not a string instead of int. Use getIdCarrier() instead. | ||
*/ | ||
public $id_carrier; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getId(): int | ||
{ | ||
return (int) $this->id; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getIdCarrier(): int | ||
{ | ||
return (int) $this->id_carrier; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.