You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$period = newDatePeriod(...);
var_dump($period->start); // Contains the start date of the period$period = newCarbonPeriod(...);
var_dump($period->start); // Error: Undefined property
Carbon version: 2.40.0
PHP version: 7.1.8
Actually: CarbonPeriod objects does not have any properties/getters to access the period definition like the DatePeriod can.
Expected: It would be great that as a polyfill CarbonPeriod would have equivalent possibility using a magic getter __get to access:
start
end
interval
recurrences
include_start_date
include_end_date
current
The text was updated successfully, but these errors were encountered:
I encountered an issue with the following code:
Carbon version: 2.40.0
PHP version: 7.1.8
Actually:
CarbonPeriod
objects does not have any properties/getters to access the period definition like theDatePeriod
can.Expected: It would be great that as a polyfill
CarbonPeriod
would have equivalent possibility using a magic getter__get
to access:The text was updated successfully, but these errors were encountered: