mybb / mybb2

The repository for the MyBB 2 forum software. Not to be used on live boards.
https://www.mybb.com
BSD 3-Clause "New" or "Revised" License
111 stars 45 forks source link

Timestamps #223

Closed chack1172 closed 8 years ago

chack1172 commented 8 years ago

In one of the last commits there's a problem. https://github.com/mybb/mybb2/commit/a33e0fbc2c002dc7069c978e6fd049ab4b7dd68d?diff=unified#diff-e6a42cbe15e7b8610cb2e34cf5f38577

$timestamps should be public or we get this error: Access level to MyBB\Core\Database\Models\User::$timestamps must be public (as in class Illuminate\Foundation\Auth\User)

euantorano commented 8 years ago

Yep, @JoshHarmon can you revert that change or shall I create a patch?

JoshHarmon commented 8 years ago

Yeah... The code sniffer led me astray there. I'll patch it up. The code sniffer doesn't like that so we either have to

joshharmon@Joshs-iMac  ~/Code/mybb2   master ●  composer sniff
> vendor/bin/phpcs

FILE: /Users/joshharmon/Code/mybb2/app/Database/Models/User.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 74 | ERROR | $timestamps must be "private" or "protected"
----------------------------------------------------------------------
JoshHarmon commented 8 years ago

Fixed in #226