scribe icon indicating copy to clipboard operation
scribe copied to clipboard

Php 84 upgrade

Open markwalet opened this issue 1 year ago • 8 comments

The dev dependencies were a bit outdated. I've updated them where I could without breaking tests, but especially in the lower versions it was unclear to me which versions were still supported.

Besides the dependency upgrades, I've resolved the deprecations warnings for PHP 8.4.

markwalet avatar Nov 27 '24 12:11 markwalet

Thanks!

I'll be fine with dropping support for PHP 8.0 and dingo/api; I think we've done a good job of supporting them for a while now.

shalvah avatar Nov 29 '24 19:11 shalvah

I'm not familiar with dingo, and the 3 different composer files don't really help with figuring out what is required and what is not. I'm used to using composer update --prefer-lowest when testing my minimal version constraints.

You can find an example here. But I'm not sure if we should fit this into this merge request at all or create a separate issue for that. What do you think?

markwalet avatar Dec 02 '24 13:12 markwalet

Any update on this? What do you want me to do?

markwalet avatar Dec 18 '24 12:12 markwalet

I've removed the dependency changes completely in favor of just doing the code changes in a separate merge request to improve reviewability.

https://github.com/knuckleswtf/scribe/pull/929

markwalet avatar Dec 18 '24 13:12 markwalet

I've been in the hospital/on recovery. I'll look at this soon. My plan is to create a branch for the next major version and do the ground work there, then point your PRs to it.

shalvah avatar Dec 30 '24 16:12 shalvah

Hmm, I think I may close this PR. I've dropped support for PHP 8, Dingo and Lumen on the vNext branch, and pointed this to it, but some tests still fail. Current dependencies seem to work fine on PHP 8.1 to 8.4.

shalvah avatar Jan 18 '25 23:01 shalvah

Okay, ,they seem to work on all versions but 8.1 (code coverage is broken). Could you check that?

It's not really a priority, anyway, since it's only dev deps.

shalvah avatar Jan 18 '25 23:01 shalvah

Unfortunately I can't get the dependencies to work. It's a bit of a mess with a separate lowest.composer.json and I can't wrap my head around it.

Even with the tests being successful, it seems like the coverage statistics are failing. On my own packages I normally only collect coverage data for the latest stable php/laravel version. Maybe that could help? It all just becomes a bit more complicated when you try to run coverage on pestphp V1 and V2.

markwalet avatar Jan 21 '25 11:01 markwalet

Yep, sorry. Ultimately, there wasn't a real need for this, but thanks for the effort.

shalvah avatar Mar 26 '25 19:03 shalvah