From 6c7f08ce05ffb204ef5a4d0cd196906f5a610ee1 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Sat, 24 Feb 2024 16:48:35 +0800 Subject: [PATCH] Hotfix: expansion definition methods must be static --- composer.json | 6 +++--- extension.json | 2 +- package.json | 2 +- server/src/Expansions/ContactFilterExpansion.php | 2 +- server/src/Expansions/EntityExpansion.php | 2 +- server/src/Expansions/OrderFilterExpansion.php | 2 +- server/src/Expansions/VendorFilterExpansion.php | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index f37bbaf..0914e8a 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fleetbase/storefront-api", - "version": "0.3.2", + "version": "0.3.3", "description": "Headless Commerce & Marketplace Extension for Fleetbase", "keywords": [ "fleetbase-extension", @@ -22,8 +22,8 @@ ], "require": { "php": "^8.0", - "fleetbase/core-api": "^1.4.9", - "fleetbase/fleetops-api": "^0.4.15", + "fleetbase/core-api": "^1.4.10", + "fleetbase/fleetops-api": "^0.4.16", "geocoder-php/google-maps-places-provider": "^1.4", "laravel-notification-channels/apn": "^5.0", "laravel-notification-channels/fcm": "^4.1", diff --git a/extension.json b/extension.json index b3793b0..78b3f6c 100644 --- a/extension.json +++ b/extension.json @@ -1,6 +1,6 @@ { "name": "Storefront", - "version": "0.3.2", + "version": "0.3.3", "description": "Headless Commerce & Marketplace Extension for Fleetbase", "repository": "https://github.com/fleetbase/storefront", "license": "MIT", diff --git a/package.json b/package.json index 87d6fed..954647e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fleetbase/storefront-engine", - "version": "0.3.2", + "version": "0.3.3", "description": "Headless Commerce & Marketplace Extension for Fleetbase", "fleetbase": { "route": "storefront", diff --git a/server/src/Expansions/ContactFilterExpansion.php b/server/src/Expansions/ContactFilterExpansion.php index a457f4f..d6b3757 100644 --- a/server/src/Expansions/ContactFilterExpansion.php +++ b/server/src/Expansions/ContactFilterExpansion.php @@ -21,7 +21,7 @@ public static function target() * * @return \Closure */ - public function storefront() + public static function storefront() { return function (?string $storefront) { /* @var \Fleetbase\FleetOps\Http\Filter\ContactFilter $this */ diff --git a/server/src/Expansions/EntityExpansion.php b/server/src/Expansions/EntityExpansion.php index 7a893a9..ff33aa7 100644 --- a/server/src/Expansions/EntityExpansion.php +++ b/server/src/Expansions/EntityExpansion.php @@ -23,7 +23,7 @@ public static function target() * * @return Entity */ - public function fromStorefrontProduct() + public static function fromStorefrontProduct() { return static function (Product $product) { return new Entity([ diff --git a/server/src/Expansions/OrderFilterExpansion.php b/server/src/Expansions/OrderFilterExpansion.php index 7013cb3..c15de00 100644 --- a/server/src/Expansions/OrderFilterExpansion.php +++ b/server/src/Expansions/OrderFilterExpansion.php @@ -21,7 +21,7 @@ public static function target() * * @return \Closure */ - public function storefront() + public static function storefront() { return function (?string $storefront) { /* @var \Fleetbase\FleetOps\Http\Filter\OrderFilter $this */ diff --git a/server/src/Expansions/VendorFilterExpansion.php b/server/src/Expansions/VendorFilterExpansion.php index a9766e3..ff2384a 100644 --- a/server/src/Expansions/VendorFilterExpansion.php +++ b/server/src/Expansions/VendorFilterExpansion.php @@ -21,7 +21,7 @@ public static function target() * * @return \Closure */ - public function storefront() + public static function storefront() { return function (?string $storefront) { /* @var \Fleetbase\FleetOps\Http\Filter\VendorFilter $this */