Skip to content

Another bug related to PHP2446 and PHP 8.5 #958

Closed

Description

@gremo

Maybe related to the fix for #955

Using version: 1.63.18152

Image
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

  1. self-assigned this
    on Dec 1, 2025
  2. added theissue type on Dec 1, 2025
  3. jakubmisek commented on Dec 1, 2025

    @jakubmisek
    Member

    Thank you for the sample, will be fixed in the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions