jeanlrnt /
laravel-cancellable
| 1 | <?php |
||
| 2 | |||
| 3 | namespace LaravelCancellable; |
||
| 4 | |||
| 5 | use Illuminate\Database\Schema\Blueprint; |
||
| 6 | use Illuminate\Support\Facades\Blade; |
||
| 7 | use Illuminate\Support\ServiceProvider; |
||
| 8 | |||
| 9 | class LaravelCancellableServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Bootstrap the application services. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | public function boot(): void |
||
| 17 | { |
||
| 18 | $this->configureMacros(); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Configure the macros to be used. |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | protected function configureMacros(): void |
||
| 27 | { |
||
| 28 | Blueprint::macro('cancelledAt', function ($column = 'cancelled_at', $precision = 0) { |
||
| 29 | return $this->timestamp($column, $precision)->nullable(); |
||
|
0 ignored issues
–
show
|
|||
| 30 | }); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Register the application services. |
||
| 35 | * |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | public function register() |
||
| 39 | { |
||
| 40 | // |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.