imanghafoori1 / laravel-microscope

Fearless refactoring, it does a lot of smart checks to find certain errors.
MIT License
1.48k stars 96 forks source link

Call to undefined method #186

Closed hooman-mirghasemi closed 2 years ago

hooman-mirghasemi commented 2 years ago

In last version v1.0.231 after run check:all

my console:

sail art check:all

Started checking PSR-4 namespaces...

imanghafoori1 commented 2 years ago

please dd the $absFilePath variable on line 256 and send me the content of the file. thanks.

hooman-mirghasemi commented 2 years ago

`<?php namespace Modules\Advertisement\Enums;

enum AdStatus: string { case New = 'new'; case UnderReview = 'under review'; case Publish = 'publish'; case Rejected = 'rejected'; case FinishPublishTime = 'finish publish time'; case Traded = 'traded';

public static function getOptions(): array
{
    return [
        self::New->value => 'جدید',
        self::UnderReview->value => 'در حال بررسی',
        self::Publish->value => 'منتشر شده',
        self::Rejected->value => 'عدم تایید',
        self::FinishPublishTime->value => 'زمان انتشار تمام شده',
        self::Traded->value => 'معامله شده',
    ];
}

} `