Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

depape66's avatar

Error with date validation

Hello everyone!

I have folloving validation rule on my local development server:

$rules = [ 'cas-od' => 'required|date_format:G:i', 'cas-do' => 'required|date_format:G:i|after:cas-od', ]

and it works perfectliy fine to make sure, that cas-do input must be after cas-od.

But when I copy this code to regular server I get this error after executing validation:

Cannot create dynamic property DateMalformedStringException::$xdebug_message

Do I get this error because of some php date/timezone settings on new server or are there maybe some problems with read/write permissions?

0 likes
2 replies
Snapey's avatar
Snapey
Best Answer
Level 122

something to do with xdebug?

1 like
depape66's avatar

@Snapey Looks like that was indeed the problem. After disabling xdebug, validation works fine. Thanks!

Please or to participate in this conversation.