Carbon::hasFormat("01/01/2019", 'd/m/Y'): preg_match(): Unknown modifier '('

Created on 13 Sep 2019  路  2Comments  路  Source: briannesbitt/Carbon


Hello,

I encountered an issue with the following code:

Carbon::hasFormat("01/01/2019", 'd/m/Y')

Carbon version: 2.24.0

PHP version: 7.2.22

I expected to get:

true

But I actually get:

PHP Warning:  preg_match(): Unknown modifier '(' in /var/www/application/vendor/nesbot/carbon/src/Carbon/Traits/Comparison.php on line 868

Thanks!

bug

Most helpful comment

Hello, thanks.

It's fixed, you can try 2.25.0-beta.2

All 2 comments

Hello, thanks.

It's fixed, you can try 2.25.0-beta.2

Thanks guys !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dboyadzhiev picture dboyadzhiev  路  4Comments

yica00 picture yica00  路  4Comments

hackel picture hackel  路  5Comments

ssi-anik picture ssi-anik  路  4Comments

lorisleiva picture lorisleiva  路  3Comments