From ba2b20e11fb7147c5b2a1b5373300c39077aeaef Mon Sep 17 00:00:00 2001 From: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> Date: Fri, 3 Jan 2025 01:00:40 +0000 Subject: [PATCH] fix: update PHPStan baseline Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> --- phpstan-baseline.neon | 15 +++++---------- src/Facades/Location.php | 16 ++++++++-------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 920c8b2..8ababcd 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5,11 +5,6 @@ parameters: count: 1 path: database/migrations/2020_09_17_000300_create_reviews_table_or_rename.php - - - message: "#^Result of static method Igniter\\\\Local\\\\Facades\\\\Location\\:\\:orderType\\(\\) \\(void\\) is used\\.$#" - count: 1 - path: src/CartConditions/Delivery.php - - message: "#^Result of static method Igniter\\\\Local\\\\Facades\\\\Location\\:\\:checkDistance\\(\\) \\(void\\) is used\\.$#" count: 1 @@ -166,18 +161,18 @@ parameters: path: src/Classes/WorkingTimeslot.php - - message: "#^Call to an undefined static method Igniter\\\\Local\\\\Models\\\\LocationArea\\:\\:find\\(\\)\\.$#" - count: 1 + message: "#^Access to an undefined property Illuminate\\\\Contracts\\\\Auth\\\\Authenticatable\\:\\:\\$last_location_area\\.$#" + count: 2 path: src/Extension.php - - message: "#^Cannot access property \\$last_location_area on null\\.$#" + message: "#^Call to an undefined method Illuminate\\\\Contracts\\\\Auth\\\\Authenticatable\\:\\:updateQuietly\\(\\)\\.$#" count: 1 path: src/Extension.php - - message: "#^Result of static method Igniter\\\\User\\\\Facades\\\\Auth\\:\\:customer\\(\\) \\(void\\) is used\\.$#" - count: 2 + message: "#^Call to an undefined static method Igniter\\\\Local\\\\Models\\\\LocationArea\\:\\:find\\(\\)\\.$#" + count: 1 path: src/Extension.php - diff --git a/src/Facades/Location.php b/src/Facades/Location.php index 8d2f16a..4ad41c1 100644 --- a/src/Facades/Location.php +++ b/src/Facades/Location.php @@ -22,18 +22,18 @@ * @method static \Igniter\Local\Contracts\LocationInterface|null getBySlug(string $slug) * @method static void clearInternalCache() * @method static void updateOrderType(void $code = null) - * @method static void orderType() + * @method static string orderType() * @method static void checkOrderType(void $code = null) * @method static \Igniter\Cart\Classes\AbstractOrderType getOrderType(void $code = null) - * @method static void getOrderTypes() - * @method static void orderTypeIsDelivery() - * @method static void orderTypeIsCollection() - * @method static void hasOrderType(void $code = null) + * @method static \Illuminate\Support\Collection getOrderTypes() + * @method static bool orderTypeIsDelivery() + * @method static bool orderTypeIsCollection() + * @method static bool hasOrderType(void $code = null) * @method static void getActiveOrderTypes() * @method static void updateScheduleTimeSlot(void $dateTime, void $isAsap = null) - * @method static void openingSchedule() - * @method static void deliverySchedule() - * @method static void collectionSchedule() + * @method static \Igniter\Local\Classes\WorkingSchedule openingSchedule() + * @method static \Igniter\Local\Classes\WorkingSchedule deliverySchedule() + * @method static \Igniter\Local\Classes\WorkingSchedule collectionSchedule() * @method static void openTime(void $type = null, void $format = null) * @method static void closeTime(void $type = null, void $format = null) * @method static void lastOrderTime()