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

Preparing for Laravel 5.3 #222

Closed JoshHarmon closed 6 years ago

JoshHarmon commented 8 years ago

Laravel 5.3 is currently slated for a release around the same time as Laracon (July 27-29th), which means it could very well be less than a month away (I assume they'd want to release before the conference). It will only support PHP 5.6+, 7.0+, and HHVM. As we previously decided to track the latest release of Laravel, this kinda matters. I think we should start building now with the system packages that Laravel 5.3 will use so that we're as prepared as we can be before we actually update the framework and deal with that stuff. Then, when 5.3 is released, we should just have to update the dependency in composer.json and work on the things in the "code stuff" section and be up and running quickly (in theory).

Build/CI

euantorano commented 8 years ago

I have no problem with the upgrade when it happens, but we need to make sure we don't end up using a version that isn't going to work on the majority of hosts. 5.2 requires PHP >5.5.9, 5.3 requires >5.6. We've already hanged our minds a few times about version requirements, so the benefits of the updated framework need to outweigh that IMO.

matthijs110 commented 8 years ago

There is way more to change. I think it would be easier and better to install a fresh Laravel 5.3 installation and add each functionality bit by bit. Some many things are too old or nearly deprecated.

euantorano commented 8 years ago

@matthijs110 We'll evaluate it when 5.3 is released. We managed to upgrade to 5.2 without too much hassle in the end. The Laravel dev usually put out good upgrade guide.

JordanMussi commented 8 years ago

So 5.3 is out... https://laravel.com/docs/5.3/upgrade#upgrade-5.3.0

euantorano commented 8 years ago

Yep, I'll be looking at going through the upgrade soon, hopefully this weekend. I also need to try and fix our errors in Travis related to HHVM.

JordanMussi commented 8 years ago

HHVM isn't supported by Laravel 5.3 so we don't need Travis to check HHMV surely...?

euantorano commented 8 years ago

@JordanMussi It's not officially supported, but it would be nice to know that we can run on it to be sure. As far as I know the base 5.3 framework will work just fine on HHVM as it stands.

Our problem is related to return type type hints, I just need to work out how I can tell Travis HHVM config to allow them.

JordanMussi commented 8 years ago

@euantorano Ah fair enough! :grinning: