This repository was archived by the owner on Sep 8, 2023. It is now read-only.
Problem with MacrosCommand.php::generateFunction #33
Open
Description
Hello here,
This is an example of a macro :
use Carbon\Carbon;
Carbon::macro('example', function (Carbon $otherDate) {
// ... some any code
});
When I generate macro via
php artisan ide-helper:macros
the generated _ide_macros.php
contains something like that :
namespace Carbon {
class Carbon {
public static function example(Carbon\Carbon $otherDate) {
}
}
}
And we can see the type of $otherDate
is wrong. I think that the easiest is to add the prefix \
in all types.
Thanks for your work :)
Metadata
Metadata
Assignees
Labels
No labels
Activity
farpat commentedon Sep 4, 2023
I go to propose a merge request
Fix 2 problems in MacrosCommand :
Fix 2 problems in MacrosCommand :