It seems like $subscription->charge_at can also be of type string; however, parameter $lastAttempt of ByTIC\Payments\Actions\S...tAttempt::nextAttempt() does only seem to accept DateTime, 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
The method addHours() does not exist on DateTime. It seems like you code against a sub-type of DateTime such as Carbon\Carbon.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The method addDays() does not exist on DateTime. It seems like you code against a sub-type of DateTime such as Carbon\Carbon.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation