if I call $openingDate->getCurrentOpenTimePeriod(), it returns the correct opening hours
However, I cannot call $openingDate->diffInBusinessHours($endDate); as it result in the following error:
exception: "BusinessTime\Exceptions\InvalidArgumentException"
file: "/app/vendor/cmixin/business-time/src/BusinessTime/MixinBase.php"
line: 300
message: "Opening hours have not been set."
Hi! I am having the same problem as in issue #31, but this time with diffInBusiness methods. I am using latest version of this package. (1.9.1)
Example:
if I call
$openingDate->getCurrentOpenTimePeriod()
, it returns the correct opening hoursHowever, I cannot call
$openingDate->diffInBusinessHours($endDate);
as it result in the following error: