ErrLookup › briannesbitt/Carbon
briannesbitt/Carbon
A simple PHP API extension for DateTime. · PHP · 923 source files
Analyzed at b13f05955d on 2026-08-17. 48 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| You cannot set {$unit} to a float value as {$name} would be | exception | error | carbon, carbon-interval, float, duration, unit-cascade |
| Argument 1 passed to {$class}::{$method}() must be an instan | exception | error | carbon, carbon-period, argument-type, type-check |
| Invalid ISO 8601 specification: {$iso}. | exception | error | carbon, carbon-period, iso8601, string-parsing, date-range |
| $anchorDay parameter must not be set for $mode OverflowMode: | exception | error | carbon, carbon-period, argument-combination, date-overflow, billing-cycle |
| You must specify $end or $recurrences but not both | exception | error | carbon, carbon-period, argument-combination, date-range |
| Invalid constructor parameters. | exception | error | carbon, carbon-period, constructor, argument-validation, variadic |
| $name | exception | error | carbon, carbon-period, magic-properties, unknown-property |
| $dateClass | exception | error | carbon, carbon-period, class-validation, date-class |
| Invalid interval. | exception | error | carbon, carbon-period, carbon-interval, interval, string-parsing |
| Empty interval is not accepted. | exception | error | carbon, carbon-period, interval, zero-value, infinite-loop-guard |
| Invalid number of recurrences. | exception | error | carbon, carbon-period, recurrences, validation, negative-value |
| Invalid start date. | exception | error | carbon, carbon-period, date-parsing, start-date |
| Invalid end date. | exception | error | carbon, carbon-period, date-parsing, end-date |
| $className has not the instance() method needed to cast the | exception | error | carbon, carbon-period, cast, type-conversion |
| Endless period can't be converted to array nor counted. | exception | error | carbon, carbon-period, infinite-loop-guard, array, count |
| Method $method does not exist. | exception | error | carbon, carbon-period, magic-methods, typo, strict-mode |
| Could not calculate period end without either explicit end o | exception | error | carbon, carbon-period, unbounded-period, calculate-end |
| Could not calculate period end after iterating 10000 times. | exception | error | carbon, carbon-period, iteration-limit, performance, calculate-end |
| Could not find next valid date. | exception | error | carbon, carbon-period, filters, infinite-loop-guard, iteration |
| Absolute timezone offset cannot be greater than 99. | exception | error | carbon, carbon-timezone, timezone-offset, validation, unit-mistake |
| $className has not the instance() method needed to cast the | exception | error | |
| Unknown or bad timezone ({}) | exception | error | |
| Unknown timezone for offset {} seconds. | exception | error | |
| The test closure defined in {} at line {} returned {}; expec | exception | error | |
| Timezone ID '{}' is invalid. It must be one of the IDs from | exception | error | |
| Macro '$methodName' not found | exception | error | |
| Could not create reflection from the spec given | exception | error | |
| Unknown unit '$unit'. | exception | error | |
| $className has not the instance() method needed to cast the | exception | error | |
| %s::%s | exception | error | |
| $unit cannot be changed to float value $value, integer expec | exception | error | |
| $anchorDay is not compatible with overflow | exception | error | |
| $method | exception | error | |
| $unit | exception | error | |
| Rounding is only possible with single unit intervals. | exception | error | |
| ->$method() cannot be called on an interval with a step | exception | error | |
| Translator does not implement Symfony\Contracts\Translation\ | exception | error | |
| {dump} does neither implements Symfony\Contracts\Translation | exception | error | |
| Could not modify with: {modify} | exception | error | |
| Unknown unit '$unit'. | exception | error | php, carbon, rounding, unit-validation, invalid-argument |
| Invalid serialized value: $value | exception | error | php, carbon, serialization, cache-invalidation, upgrade |
| Invalid unit for real timestamp add/sub: '$unit' | exception | error | php, carbon, utc-arithmetic, unit-validation, strict-mode |
| Unable to add unit '.var_export($originalArgs, true) | exception | error | php, carbon, date-arithmetic, unit-validation, exception-chaining |
| Unsupported unit '$unit' | exception | error | php, carbon, unit-validation, date-arithmetic, invalid-argument |
| $anchorDay must be greater than 0 | exception | error | php, carbon, argument-validation, anchor-day, off-by-one |
| Interval objects cannot be multiplied by a non-integer value | exception | error | php, carbon, type-validation, interval-arithmetic |
| $anchorDay can be set only $overflow = OverflowMode::AnchorD | exception | error | php, carbon, argument-validation, overflow-mode, api-misuse |
| Expected positive number of seconds, '.$seconds.' given | exception | error | php, carbon, clock, sleep, rate-limiting |