spatie / period

Complex period comparisons
https://spatie.be/open-source
MIT License
1.55k stars 72 forks source link

Precision::fromString incompatible to Boundaries::fromString #121

Closed JUVOJustin closed 11 months ago

JUVOJustin commented 1 year ago

When trying to create a new period, I get a fatal error:

Fatal error: Declaration of Spatie\Period\Precision::fromString(string $string): Spatie\Period\Precision must be compatible with Spatie\Period\Boundaries::fromString(string $startBoundary, string $endBoundary)

The Period creation is done with the following code: Period::make(new \DateTimeImmutable('now'), new \DateTimeImmutable('now +1 day'), Precision::SECOND());

Am i missing something here?

JUVOJustin commented 1 year ago

I downgraded to 2.3.5 and the error is gone. Maybe that helps.

spatie-bot commented 11 months ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.