Slim-Skeleton icon indicating copy to clipboard operation
Slim-Skeleton copied to clipboard

Upgrading Skeleton to PHP 8.4

Open JimTools opened this issue 1 year ago • 8 comments

Updating the skeleton to user PHP 8.2+ and updating to some of the newer language features.

closes #344

JimTools avatar Feb 29 '24 17:02 JimTools

Hmm, but what if somebody wants to create a new app that should also be compatible with older PHP versions?

carlosmintfan avatar May 11 '24 20:05 carlosmintfan

This way, people like me, using PHP 8.1, will be required to use the old version because this version only permits use starting with PHP 8.3. Although all or most of the changes you made are compatible with PHP 8.0.

carlosmintfan avatar May 18 '24 19:05 carlosmintfan

I'd like to point out that you are on borrowed time with 8.1 as it went out of active support ~5 months ago Supported Versions. Looking at other popular frameworks they have also drop support for 8.1. So i can see the value in supporting PHP 8.2+

As for exisiting projects this doesn't change much as the chanages do not affect the underlying framework only new projects created via composer create-project slim/slim-skeleton

JimTools avatar May 19 '24 10:05 JimTools

Well, that's stupid. 8.1 is the package manager version in Ubuntu Jammy (22.04). If there are newer Ubuntu versions, I can't upgrade because I'm using Linux Mint. It's bad that we have these great package managers but then have to wait to get newer versions – or use PPAs or build PHP or whatever. Well, Mint 22 should come out soon, with a new Ubuntu base. But 8.1 still gets security fixes so the skeleton...ah, readonly is new in 8.2 so we can't use it in 8.1. Well, okay, will hopefully hop on to 8.3 in next Ubuntu base. :sweat_smile:

carlosmintfan avatar May 19 '24 16:05 carlosmintfan

@carlosmintfan you might want to consider looking into docker if your developing locally, it’s very neat and decouples config from your development environment.

JimTools avatar May 23 '24 06:05 JimTools

Rework is needed to update this to PHP 8.4, hopefully I'll have time over the weekend.

JimTools avatar Jan 16 '25 23:01 JimTools

@odan @akrabat Now PHP 8.4 has been released I've updated this PR to fix 8.4 issue.

JimTools avatar Jan 26 '25 11:01 JimTools

Hi @odan

Thanks for taking a look I've updated the PR, If there is anything else let me know and try to resolve it quickly.

JimTools avatar Jan 26 '25 18:01 JimTools