I’m registering a custom Carbon macro in my Laravel’s AppServiceProvider Carbon::macro('itFormat', static function () { return ucwords(self::this()->translatedFormat('l d/m/Y')); }); But PHPStan insists that, in this code, self is referred to the AppServiceProvider itself Call to an undefined ...
Home/PHP/Page 3