composer : Note: Using configuration file C:\xampp\htdocs\phpstan.neon. At C:\Users\mysty\AppData\Local\Temp\ps-script-4c233d57-8b97-43d3-b4e2-429ef0604673.ps1:110 char:21 + cd c:\xampp\htdocs; composer analyse 2>&1 | Out-File storage\phpstan\ ... + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (Note: Using con...s\phpstan.neon.:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError 0/760 [>---------------------------] 0% 760/760 [============================] 100% ------ ------------------------------------------------------------------------------------- Line Modules\GletraChatBox\Providers\GletraChatBoxServiceProvider.php ------ ------------------------------------------------------------------------------------- 39 Call to an undefined method Illuminate\View\ViewFinderInterface::prependLocation(). ------ ------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------- Line Modules\GletraChatBox\app\Console\Commands\FirebaseTestCommand.php ------ ---------------------------------------------------------------------------------------------------------- 40 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. ------ ---------------------------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line Modules\GletraChatBox\app\Http\Controllers\Admin\AdminStorageController.php ------ -------------------------------------------------------------------------------------- 40 Access to an undefined property GletraChatBox\App\Models\Message::$bytes. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------------------- Line Modules\GletraChatBox\app\Http\Controllers\Api\AuthApiController.php ------ --------------------------------------------------------------------------------------------------------- 117 Call to an undefined method Laravel\Sanctum\Contracts\HasAbilities::delete(). 117 Using nullsafe method call on non-nullable type Laravel\Sanctum\Contracts\HasAbilities. Use -> instead. ------ --------------------------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------- Line Modules\GletraChatBox\app\Http\Controllers\StatusController.php ------ --------------------------------------------------------------------------------- 289 Parameter #1 $boolean of function abort_unless expects bool, string|null given. 318 Parameter #1 $boolean of function abort_unless expects bool, string|null given. ------ --------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------- Line Modules\GletraChatBox\app\Http\Controllers\StickerController.php ------ ---------------------------------------------------------------------------------------------------- 65 Call to an undefined method Illuminate\Contracts\Pagination\LengthAwarePaginator::getCollection(). ------ ---------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------- Line Modules\GletraChatBox\app\Http\Controllers\VoiceNoteController.php ------ ---------------------------------------------------------------------------------------- 35 Method GletraChatBox\App\Http\Controllers\VoiceNoteController::stream() should return Illuminate\Http\Response|Symfony\Component\HttpFoundation\StreamedResponse but returns Symfony\Component\HttpFoundation\BinaryFileResponse. ------ ---------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line Modules\GletraChatBox\app\Models\Conversation.php ------ -------------------------------------------------------------------------------------- 77 Access to an undefined property GletraChatBox\App\Models\Conversation::$user_one. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 83 Access to an undefined property GletraChatBox\App\Models\Conversation::$user_two. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 86 Access to an undefined property GletraChatBox\App\Models\Conversation::$user_two. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 87 Access to an undefined property GletraChatBox\App\Models\Conversation::$user_one. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 124 Access to an undefined property GletraChatBox\App\Models\Conversation::$user_one. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 124 Access to an undefined property GletraChatBox\App\Models\Conversation::$user_two. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 146 Access to an undefined property GletraChatBox\App\Models\Conversation::$user_one. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------------- Line Modules\GletraChatBox\app\Models\Message.php ------ --------------------------------------------------------------------------------------------------- 237 Using nullsafe method call on non-nullable type GletraChatBox\App\Models\Message. Use -> instead. ------ --------------------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------------------------------ Line Modules\GletraChatBox\app\Services\FollowService.php ------ ------------------------------------------------------------------------------------------------------------ 393 PHPDoc tag @return with type Illuminate\Support\Collection> is incompatible with native type array. 405 Call to an undefined method Illuminate\Contracts\Pagination\LengthAwarePaginator::getCollection(). 433 PHPDoc tag @return with type Illuminate\Support\Collection> is incompatible with native type array. 453 PHPDoc tag @return with type Illuminate\Support\Collection> is incompatible with native type array. ------ ------------------------------------------------------------------------------------------------------------ ------ ------------------------------------------------------------------------------------------------ Line Modules\GletraChatBox\app\Services\MessageAttachmentService.php ------ ------------------------------------------------------------------------------------------------ 100 Offset 'message_type' on non-empty-array on left side of ?? always exists and is not nullable. 106 Variable $category on left side of ?? always exists and is not nullable. 106 Variable $category on left side of ?? always exists and is not nullable. ------ ------------------------------------------------------------------------------------------------ ------ --------------------------------------------------------------------------------------- Line Modules\GletraChatBox\app\Services\UserSettingsService.php ------ --------------------------------------------------------------------------------------- 19 Method GletraChatBox\App\Services\UserSettingsService::forUser() should return GletraChatBox\App\Models\UserSetting but returns Illuminate\Database\Eloquent\Model. 40 Access to an undefined property GletraChatBox\App\Models\UserSetting::$privacy. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 59 Access to an undefined property GletraChatBox\App\Models\UserSetting::$chat. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 91 Access to an undefined property GletraChatBox\App\Models\UserSetting::$notifications. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 150 Access to an undefined property GletraChatBox\App\Models\UserSetting::$storage. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 162 Access to an undefined property GletraChatBox\App\Models\UserSetting::$appearance. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 172 Access to an undefined property GletraChatBox\App\Models\UserSetting::$status. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 182 Access to an undefined property GletraChatBox\App\Models\UserSetting::$security. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 253 Access to an undefined property GletraChatBox\App\Models\UserSetting::$privacy. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 254 Access to an undefined property GletraChatBox\App\Models\UserSetting::$calls. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 257 Property App\Models\User::$privacy_settings (string|null) does not accept array. ------ --------------------------------------------------------------------------------------- ------ -------------------------------------------------- Line Modules\GletraChatBox\app\Support\StorageUrl.php ------ -------------------------------------------------- 40 Right side of || is always false. ------ -------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------- Line Modules\GletraChatBox\config\gletra.php ------ ---------------------------------------------------------------------------------------------------------- 7 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 10 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 11 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 13 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 15 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 16 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 20 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 21 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 25 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 98 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 103 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 104 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 110 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 111 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 112 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 112 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 116 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 117 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 118 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 119 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 123 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 124 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 125 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 126 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 127 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 128 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 129 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 130 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 131 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 138 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 142 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 146 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 148 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 149 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. ------ ---------------------------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Http\Controllers\Api\V1\TrackingController.php ------ --------------------------------------------------------------------------------------------------------- 30 Parameter #1 $boolean of function abort_unless expects bool, GletraLocalServices\App\Models\Worker|null given. ------ --------------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Http\Controllers\Customer\BookingController.php ------ ---------------------------------------------------------------------------------------------------------- 39 Parameter #1 $boolean of function abort_unless expects bool, GletraLocalServices\App\Models\Service|null given. 58 Parameter #1 $boolean of function abort_unless expects bool, GletraLocalServices\App\Models\Service|null given. ------ ---------------------------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Http\Controllers\Tracking\BookingTrackingController.php ------ -------------------------------------------------------------------------------------------------- 30 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 42 Parameter #1 $worker of method GletraLocalServices\App\Services\Tracking\BookingTrackingService::updateWorkerLocation() expects GletraLocalServices\App\Models\Worker, App\Models\Worker given. 60 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ -------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Http\Controllers\Worker\JobController.php ------ ---------------------------------------------------------------------------------------------------------- 21 Parameter #1 $boolean of function abort_unless expects bool, GletraLocalServices\App\Models\Booking|null given. ------ ---------------------------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Livewire\Worker\AttendancePage.php ------ --------------------------------------------------------------------- 18 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ --------------------------------------------------------------------- ------ --------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Livewire\Worker\Availability.php ------ --------------------------------------------------------------------- 18 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ --------------------------------------------------------------------- ------ ---------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Livewire\Worker\Dashboard.php ------ ---------------------------------------------------------------------- 17 Access to property $is_online on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 17 Call to method update() on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 27 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ ---------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Livewire\Worker\JobDetail.php ------ ---------------------------------------------------------------------------------------------------------- 23 Parameter #1 $boolean of function abort_unless expects bool, GletraLocalServices\App\Models\Booking|null given. 24 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ ---------------------------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Livewire\Worker\Jobs.php ------ --------------------------------------------------------------------- 18 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 27 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 28 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ --------------------------------------------------------------------- ------ --------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Livewire\Worker\Kyc.php ------ --------------------------------------------------------------------- 25 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 39 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ --------------------------------------------------------------------- ------ --------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Livewire\Worker\WalletPage.php ------ --------------------------------------------------------------------- 24 Access to property $id on an unknown class App\Models\Worker. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ --------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Models\ServiceCategory.php ------ --------------------------------------------------------------------------------------------------------------- 31 Return type (Illuminate\Database\Eloquent\Relations\BelongsTo) of method GletraLocalServices\App\Models\ServiceCategory::parent() should be compatible with return type (Illuminate\Database\Eloquent\Relations\BelongsTo) of method App\Models\Category::parent() ------ --------------------------------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------------------------------- Line Modules\GletraLocalServices\app\Services\Tracking\WorkerMatchingService.php ------ ------------------------------------------------------------------------------------------------------------- 21 Using nullsafe property access on non-nullable type GletraLocalServices\App\Models\Address. Use -> instead. ------ ------------------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------- Line Modules\GletraLocalServices\config\gletra-local-services.php ------ ---------------------------------------------------------------------------------------------------------- 4 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 15 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 16 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 20 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 21 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 22 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 72 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 73 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 74 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 85 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 86 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 91 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 92 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 93 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. 94 Called 'env' outside of the config directory which returns null when the config is cached, use 'config'. ------ ---------------------------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------------- Line Modules\GletraLocalServices\tests\Feature\BookingFlowTest.php ------ --------------------------------------------------------------------------------------------------- 8 Class GletraLocalServices\Tests\Feature\BookingFlowTest extends unknown class Tests\TestCase. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 14 Call to an undefined method GletraLocalServices\Tests\Feature\BookingFlowTest::assertIsBool(). 20 Call to an undefined method GletraLocalServices\Tests\Feature\BookingFlowTest::markTestSkipped(). 23 Call to an undefined method GletraLocalServices\Tests\Feature\BookingFlowTest::get(). ------ --------------------------------------------------------------------------------------------------- ------ ---------------------------------------------- Line app\Console\Commands\SetupStorageCommand.php ------ ---------------------------------------------- 55 Right side of && is always true. ------ ---------------------------------------------- ------ ----------------------------------------------------------- Line app\Http\Controllers\Admin\AffiliateProductController.php ------ ----------------------------------------------------------- 48 Match expression does not handle remaining value: mixed ------ ----------------------------------------------------------- ------ ------------------------------------------------------------------- Line app\Http\Controllers\Admin\CouponController.php ------ ------------------------------------------------------------------- 52 Call to an undefined method Illuminate\Http\Request::validated(). 74 Call to an undefined method Illuminate\Http\Request::validated(). ------ ------------------------------------------------------------------- ------ --------------------------------------------------------------------- Line app\Http\Controllers\Admin\PayoutController.php ------ --------------------------------------------------------------------- 79 Parameter #1 $string of function str_pad expects string, int given. ------ --------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------------------------- Line app\Http\Controllers\Admin\PriceChangeRequestController.php ------ -------------------------------------------------------------------------------------------------------- 31 Parameter #1 $boolean of function abort_unless expects bool, App\Models\PriceChangeRequest|null given. 41 Parameter #1 $boolean of function abort_unless expects bool, App\Models\PriceChangeRequest|null given. ------ -------------------------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Http\Controllers\Admin\ReportController.php ------ -------------------------------------------------------------------------------------- 83 Access to an undefined property App\Models\Vendor::$total_earnings. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------- Line app\Http\Controllers\Api\AuthController.php ------ ------------------------------------------------------------------------------- 81 Call to an undefined method Laravel\Sanctum\Contracts\HasAbilities::delete(). ------ ------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------- Line app\Http\Controllers\Auth\GoogleController.php ------ -------------------------------------------------------------------------------- 26 Call to an undefined method Laravel\Socialite\Contracts\Provider::stateless(). ------ -------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------- Line app\Http\Controllers\Auth\OtpController.php ------ ---------------------------------------------------------------------------------------- 101 If condition is always true. 111 Strict comparison using === between int and 'blocked' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. 115 Strict comparison using === between int and 'suspended' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. ------ ---------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------- Line app\Http\Controllers\Customer\OrderController.php ------ --------------------------------------------------------------------- 159 Cannot call method format() on string. 167 Parameter #1 $string of function str_pad expects string, int given. ------ --------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Http\Controllers\Customer\ProfileController.php ------ -------------------------------------------------------------------------------------- 157 Access to an undefined property App\Models\User::$avatar_url. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------- Line app\Http\Controllers\Front\AuthController.php ------ ---------------------------------------------------------------------------------------- 90 Strict comparison using === between int and 'blocked' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. 94 Strict comparison using === between int and 'suspended' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. 220 Access to an undefined property Laravel\Socialite\Contracts\User::$id. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 221 Access to an undefined property Laravel\Socialite\Contracts\User::$email. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 226 Access to an undefined property Laravel\Socialite\Contracts\User::$id. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 227 Access to an undefined property Laravel\Socialite\Contracts\User::$name. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 228 Access to an undefined property Laravel\Socialite\Contracts\User::$avatar. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 233 Access to an undefined property Laravel\Socialite\Contracts\User::$name. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 234 Access to an undefined property Laravel\Socialite\Contracts\User::$email. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 235 Access to an undefined property Laravel\Socialite\Contracts\User::$id. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 236 Access to an undefined property Laravel\Socialite\Contracts\User::$avatar. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 246 Strict comparison using === between int and 'blocked' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. 250 Strict comparison using === between int and 'suspended' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. ------ ---------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------- Line app\Http\Controllers\Front\ProductController.php ------ ---------------------------------------------------------------------------------------------------------- 106 Parameter #1 $callback of method Illuminate\Support\Collection::filter() expects (callable(App\Models\RecentlyViewed, int): bool)|null, Closure(mixed): (App\Models\Product|null) given. ------ ---------------------------------------------------------------------------------------------------------- ------ ----------------------------------------------------------------------------------------------------- Line app\Http\Controllers\MobileController.php ------ ----------------------------------------------------------------------------------------------------- 92 Method App\Http\Controllers\Customer\CartController::index() invoked with 0 parameters, 1 required. ------ ----------------------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Http\Controllers\NotificationController.php ------ -------------------------------------------------------------------------------------- 56 Access to an undefined property App\Models\User::$unreadNotifications. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Http\Controllers\Vendor\AnalyticsController.php ------ -------------------------------------------------------------------------------------- 152 Access to an undefined property App\Models\Order::$count. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 152 Access to an undefined property App\Models\Order::$month. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 152 Access to an undefined property App\Models\Order::$revenue. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 176 Access to an undefined property App\Models\OrderItem::$sold. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 226 Access to an undefined property App\Models\OrderItem::$sold. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ ---------------------------------------------------------- Line app\Http\Controllers\Vendor\DashboardController.php ------ ---------------------------------------------------------- 112 Property App\Models\OrderItem::$product is not writable. ------ ---------------------------------------------------------- ------ ----------------------------------------------------------------------------- Line app\Http\Controllers\Vendor\PayoutController.php ------ ----------------------------------------------------------------------------- 40 Match arm comparison between 'pending'|null and 'rejected' is always false. 45 Match arm comparison between 'pending'|null and 'rejected' is always false. ------ ----------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------------------------- Line app\Http\Controllers\Vendor\SupportController.php ------ --------------------------------------------------------------------------------------------------------------- 15 Expression "\Illuminate\Support\Facades\Auth::user()->active_vendor" on a separate line does not do anything. 52 Parameter #1 $string of function str_pad expects string, int given. ------ --------------------------------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------- Line app\Http\Middleware\RoleMiddleware.php ------ --------------------------------------------------------------------- 29 Parameter #1 $string of function ucfirst expects string, int given. 33 Unreachable statement - code above always terminates. ------ --------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Http\Requests\Admin\UpdateVariantValueRequest.php ------ -------------------------------------------------------------------------------------- 20 Access to an undefined property (object|string)::$variant_group_id. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 29 Access to an undefined property (object|string)::$id. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------------ Line app\Http\Resources\CategoryResource.php ------ ------------------------------------------------------------------------------------------ 13 Access to an undefined property App\Http\Resources\CategoryResource::$id. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 14 Access to an undefined property App\Http\Resources\CategoryResource::$parent_id. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 15 Access to an undefined property App\Http\Resources\CategoryResource::$level. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 16 Access to an undefined property App\Http\Resources\CategoryResource::$name. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 17 Access to an undefined property App\Http\Resources\CategoryResource::$slug. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 18 Access to an undefined property App\Http\Resources\CategoryResource::$short_description. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 19 Access to an undefined property App\Http\Resources\CategoryResource::$description. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 20 Call to an undefined method App\Http\Resources\CategoryResource::getImageUrl(). 21 Call to an undefined method App\Http\Resources\CategoryResource::getBannerUrl(). 22 Call to an undefined method App\Http\Resources\CategoryResource::thumbnailMeta(). 23 Access to an undefined property App\Http\Resources\CategoryResource::$meta_title. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 24 Access to an undefined property App\Http\Resources\CategoryResource::$meta_description. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 25 Access to an undefined property App\Http\Resources\CategoryResource::$display_order. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 26 Access to an undefined property App\Http\Resources\CategoryResource::$is_featured. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 29 Access to an undefined property App\Http\Resources\CategoryResource::$gender. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 30 Access to an undefined property App\Http\Resources\CategoryResource::$age_group. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 31 Access to an undefined property App\Http\Resources\CategoryResource::$status. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ ------------------------------------------------------------------------------------------ ------ --------------------------------------------------------------------------------------- Line app\Jobs\Analytics\NotifyVendorAnalyticsAlertsJob.php ------ --------------------------------------------------------------------------------------- 20 Relation 'vendor' is not found in App\Models\Analytics\ProductAnalyticsInsight model. ------ --------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------- Line app\Listeners\SendFirebasePushNotification.php ------ ------------------------------------------------------------------------------- 37 Call to an undefined method Illuminate\Notifications\Notification::toArray(). ------ ------------------------------------------------------------------------------- ------ ----------------------------------------------------------------------------------------------------- Line app\Models\Order.php ------ ----------------------------------------------------------------------------------------------------- 71 Method App\Models\Order::deliveredAtDate() should return Illuminate\Support\Carbon|null but returns Carbon\Carbon. ------ ----------------------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------- Line app\Models\Review.php ------ ------------------------------------------------------------------------------------- 91 Right side of && is always true. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. ------ ------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------------------------------------------------- Line app\Models\User.php ------ ------------------------------------------------------------------------------------------------------------------------------- 229 Class App\Models\Worker not found. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 626 Offset 'admin'|'affiliate'|'company_owner'|'company_staff'|'customer'|'designer'|'editor'|'support'|'vendor'|'vendor_staff'|'worker' on array{admin: 'admin', support: 'admin', editor: 'admin', company_owner: 'company', vendor: 'vendor', worker: 'worker', designer: 'designer', vendor_staff: 'vendor', ...} on left side of ?? always exists and is not nullable. 628 Left side of && is always true. ------ ------------------------------------------------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------- Line app\Notifications\CommissionDeductedNotification.php ------ -------------------------------------------------------------------------- 30 Parameter #1 $num of function number_format expects float, string given. 40 Parameter #1 $num of function number_format expects float, string given. ------ -------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------- Line app\Notifications\FundsReleasedNotification.php ------ ------------------------------------------------------------------------------- 30 Parameter #1 $num of function number_format expects float, string|null given. 39 Parameter #1 $num of function number_format expects float, string|null given. ------ ------------------------------------------------------------------------------- ------ --------------------------------------------------------------------- Line app\Notifications\PayoutNotification.php ------ --------------------------------------------------------------------- 23 Function price not found. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 24 Function price not found. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ --------------------------------------------------------------------- ------ ------------------------------------------------------------------------------- Line app\Notifications\SettlementCompletedNotification.php ------ ------------------------------------------------------------------------------- 31 Parameter #1 $num of function number_format expects float, string|null given. 40 Parameter #1 $num of function number_format expects float, string|null given. ------ ------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------------------------- Line app\Policies\CouponPolicy.php ------ --------------------------------------------------------------------------------------------------------------- 27 Strict comparison using === between 'admin'|'customer'|null and 'vendor_staff' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. 43 Strict comparison using === between 'admin'|'customer'|null and 'vendor_staff' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. ------ --------------------------------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------------------------- Line app\Policies\OrderPolicy.php ------ --------------------------------------------------------------------------------------------------------------- 27 Strict comparison using === between 'admin'|'customer'|null and 'vendor_staff' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. ------ --------------------------------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------------------------- Line app\Policies\ProductPolicy.php ------ --------------------------------------------------------------------------------------------------------------- 27 Strict comparison using === between 'admin'|'customer'|null and 'vendor_staff' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. 43 Strict comparison using === between 'admin'|'customer'|null and 'vendor_staff' will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. ------ --------------------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------- Line app\Providers\AppServiceProvider.php ------ ---------------------------------------------------------------------------------------------------------- 28 Anonymous function has invalid return type SeoService. 28 Anonymous function should return App\Services\SeoService&SeoService but returns App\Services\SeoService. ------ ---------------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------- Line app\Services\Analytics\AnalyticsAggregationService.php ------ ---------------------------------------------------------------------------------------------- 115 Access to an undefined property App\Models\Analytics\SearchAnalyticsLog::$search_count. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 124 Access to an undefined property App\Models\Analytics\SearchAnalyticsLog::$search_count. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 125 Access to an undefined property App\Models\Analytics\SearchAnalyticsLog::$cart_adds. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 126 Access to an undefined property App\Models\Analytics\SearchAnalyticsLog::$orders_count. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 127 Access to an undefined property App\Models\Analytics\SearchAnalyticsLog::$no_purchase_count. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 128 Access to an undefined property App\Models\Analytics\SearchAnalyticsLog::$cart_adds. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 129 Access to an undefined property App\Models\Analytics\SearchAnalyticsLog::$orders_count. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 130 Access to an undefined property App\Models\Analytics\SearchAnalyticsLog::$orders_count. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 155 Access to an undefined property App\Models\Analytics\ProductAnalyticsDaily::$category_id. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 194 Access to an undefined property App\Models\Analytics\ProductAnalyticsDaily::$brand_id. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ ---------------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------------- Line app\Services\Analytics\ProductAnalyticsDashboardService.php ------ --------------------------------------------------------------------------------------------- 191 Access to an undefined property App\Models\Analytics\ProductAnalyticsDaily::$recent_views. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 192 Access to an undefined property App\Models\Analytics\ProductAnalyticsDaily::$recent_orders. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ --------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------- Line app\Services\Analytics\ProductInsightDetectionService.php ------ ---------------------------------------------------------------------------------------- 219 Relation 'product' is not found in App\Models\Analytics\ProductAnalyticsInsight model. ------ ---------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Services\Cart\CartPricingService.php ------ -------------------------------------------------------------------------------------- 74 Access to an undefined property App\Models\UserAddress::$state_code. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------------------- Line app\Services\Image\ImageService.php ------ ------------------------------------------------------------------------------------------------- 148 Parameter #1 $width of method Intervention\Image\Image::resize() expects int|null, float given. ------ ------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------- Line app\Services\NotificationService.php ------ ---------------------------------------------------------------------- 464 Instantiated class Twilio\Rest\Client not found. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 465 Access to property $messages on an unknown class Twilio\Rest\Client. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ ---------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Services\Order\OrderService.php ------ -------------------------------------------------------------------------------------- 47 Access to an undefined property App\Models\ProductVariant::$weight. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 54 Access to an undefined property App\Models\UserAddress::$state_code. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Services\Payment\PaymentService.php ------ -------------------------------------------------------------------------------------- 42 Access to an undefined property Razorpay\Api\Api::$order. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Services\Payment\RazorpayService.php ------ -------------------------------------------------------------------------------------- 25 Access to an undefined property Razorpay\Api\Api::$order. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 40 Access to an undefined property Razorpay\Api\Api::$order. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------------------------------- Line app\Services\ProductSearchService.php ------ -------------------------------------------------------------------------------------------------------------- 68 Parameter #1 $callback of method Illuminate\Database\Eloquent\Collection::map() expects callable(Illuminate\Database\Eloquent\Model, int): array{id: int, name: string|null, slug: string|null, sku: string|null, category: string|null, price: float, sale_price: float, has_discount: bool, image: string, url: string}, Closure(App\Models\Product): array{id: int, name: string|null, slug: string|null, sku: string|null, category: string|null, price: float, sale_price: float, has_discount: bool, image: string, url: string} given. ------ -------------------------------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------- Line app\Services\Product\ProductVariantService.php ------ ------------------------------------------------------------------------------------- 250 Right side of && is always true. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. ------ ------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------- Line app\Services\Support\SupportPanelService.php ------ ------------------------------------------------------------------------------------- 307 Ternary operator condition is always true. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. 328 Ternary operator condition is always true. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. ------ ------------------------------------------------------------------------------------- ------ ---------------------------------------------------------- Line app\Services\System\HealthMonitor.php ------ ---------------------------------------------------------- 42 Dead catch - Exception is never thrown in the try block. ------ ---------------------------------------------------------- ------ ---------------------------------------------------------- Line app\Services\UserBehavior\DeviceBrowserParserService.php ------ ---------------------------------------------------------- 76 Negated boolean expression is always true. ------ ---------------------------------------------------------- ------ ----------------------------------------------------------- Line app\Services\UserBehavior\UserBehaviorTrackingService.php ------ ----------------------------------------------------------- 246 Expression on left side of ?? is not nullable. ------ ----------------------------------------------------------- ------ ------------------------------------------------------------------------------------- Line app\Services\Vendor\VendorAuditService.php ------ ------------------------------------------------------------------------------------- 31 Else branch is unreachable because ternary operator condition is always true. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. 32 Else branch is unreachable because ternary operator condition is always true. ------ ------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------- Line app\Services\Vendor\VendorVerificationService.php ------ ------------------------------------------------------------------------------- 134 Comparison operation ">" between int<1, max> and 0 is always true. 134 Else branch is unreachable because ternary operator condition is always true. ------ ------------------------------------------------------------------------------- ------ -------------------------------------------- Line app\Support\GletraBroadcast.php ------ -------------------------------------------- 202 Negated boolean expression is always true. ------ -------------------------------------------- ------ -------------------------------------------------------------------------------------- Line app\Traits\GletraChatUser.php (in context of class App\Models\User) ------ -------------------------------------------------------------------------------------- 189 Access to an undefined property Illuminate\Database\Eloquent\Model::$calls. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 190 Call to function is_array() with string|null will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon. ------ -------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------------------------------- Line database\factories\UserFactory.php ------ ------------------------------------------------------------------------------------------------------------- 37 Method Database\Factories\UserFactory::unverified() should return $this(Database\Factories\UserFactory) but returns static(Database\Factories\UserFactory). ------ ------------------------------------------------------------------------------------------------------------- [ERROR] Found 233 errors Script phpstan analyse --memory-limit=2G handling the analyse event returned with error code 1