From 3163e39799c9bc5ae09c21d36ab2f7772d92118b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80?= Date: Mon, 29 Aug 2016 00:38:52 +0300 Subject: [PATCH] fix error I have some error after update `Cannot access property Jenssegers\Date\Date::$lastErrors` on `Date::createFromFormat('d.m.Y', $date)`, after re-init property to protected it was fixed. --- src/Date.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Date.php b/src/Date.php index 7b1cc25..a0dc3a2 100644 --- a/src/Date.php +++ b/src/Date.php @@ -24,6 +24,13 @@ class Date extends Carbon */ protected static $fallbackLocale = 'en'; + /** + * The errors that can occur. + * + * @var array + */ + protected static $lastErrors; + /** * Returns new DateTime object. *