Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
WaterSpout committed Aug 28, 2016
1 parent 43c792a commit 3163e39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 3163e39

Please sign in to comment.