Skip to content

Commit

Permalink
9.2.5: #193
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jan 28, 2023
1 parent 1598642 commit b5e6930
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Shipping/Plugin/Model/CarrierFactoryT.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ final class CarrierFactoryT {
* It forces the @see \Df\Shipping\Method descendants to be singletons:
* @see \Magento\Shipping\Model\CarrierFactory::create()
* https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/CarrierFactory.php#L57-L80
* 2023-01-28
* «Return value of Df\Shipping\Plugin\Model\CarrierFactoryT::aroundCreate()
* must implement interface Magento\Shipping\Model\Carrier\AbstractCarrierInterface, boolean returned»:
* https://github.com/mage2pro/core/issues/193
* @param int|null $sid [optional]
* @return IM|false
*/
function aroundCreate(Sb $sb, \Closure $f, string $c, $sid = null):IM {/** @var $r */
function aroundCreate(Sb $sb, \Closure $f, string $c, $sid = null) {/** @var $r */
if (!is_a($c, M::class, true)) {
$r = $f($c, $sid);
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/core"
,"version": "9.2.4"
,"version": "9.2.5"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit b5e6930

Please sign in to comment.