'2021-08-05' of type string is incompatible with the type integer|null expected by parameter $year of Carbon\Carbon::create().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $date can also be of type false; however, parameter $date of Pratiksh\Nepalidate\Services\NepaliDate::create() does only seem to accept Carbon\Carbon, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
'2021-08-05' of type string is incompatible with the type integer|null expected by parameter $year of Carbon\Carbon::create().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $date can also be of type false; however, parameter $date of Pratiksh\Nepalidate\Services\NepaliDate::create() does only seem to accept Carbon\Carbon, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
'2021-08-05' of type string is incompatible with the type integer|null expected by parameter $year of Carbon\Carbon::create().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $date can also be of type false; however, parameter $date of Pratiksh\Nepalidate\Services\NepaliDate::create() does only seem to accept Carbon\Carbon, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation