Maybe related to the fix for https://github.com/DEVSENSE/phptools-docs/issues/955 Using version: 1.63.18152 <img width="1166" height="500" alt="Image" src="https://github.com/user-attachments/assets/dc0597a5-d30b-40c9-8272-8398f15d2c97" /> ```php class WorkShift { public ?Time $startTime = null; public ?Time $endTime = null; #[Assert\When( expression: static function (self $o) { return null !== $o->startTime && null !== $o->endTime && null !== $o->breakTime; }, constraints: new Assert\Expression( 'value.seconds < this.startTime.durationUntil(this.endTime).seconds', message: 'The break must be shorter than the shift duration.', ), )] public ?Duration $breakTime = null; } ```
Activity
jakubmisek commentedon Dec 1, 2025
Thank you for the sample, will be fixed in the update.