Skip to content

Typo in AssertLessThanOrEqualToEarliestScheduleEntryStart #9017

@BacLuc

Description

@BacLuc

⚠️ Potential issue | 🟡 Minor

Typo in user-facing message: "then" → "than".

"start-date can not be later then" should read "start-date can not be later than".

Proposed fix
-        $this->message = $message ?? $options['message'] ?? 'Due to existing schedule entries, start-date can not be later then {{ startDate }}';
+        $this->message = $message ?? $options['message'] ?? 'Due to existing schedule entries, start-date can not be later than {{ startDate }}';
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

        $this->message = $message ?? $options['message'] ?? 'Due to existing schedule entries, start-date can not be later than {{ startDate }}';
🤖 Prompt for AI Agents
In
`@api/src/Validator/Period/AssertLessThanOrEqualToEarliestScheduleEntryStart.php`
at line 12, The user-facing message in the
AssertLessThanOrEqualToEarliestScheduleEntryStart validator sets $this->message
with the string containing a typo ("then" instead of "than"); update the message
assigned to $this->message in that class to replace "then" with "than" so it
reads "start-date can not be later than {{ startDate }}".

Originally posted by @coderabbitai[bot] in #9013 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions