joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[5.2] Drone: Adding check for PHP version

Open Hackwar opened this issue 3 years ago • 11 comments

Right now we actually aren't checking the compatibility of our code for a certain PHP version statically. This PR should change that.

Hackwar avatar Aug 16 '22 09:08 Hackwar

When PRs #38528 and #38527 are merged, the hard errors would be solved in our codebase. The issues left would be several warnings and 3 errors regarding soft reserved keywords which we are using. Those issues couldn't be solved and should be part of the exclusion list.

Hackwar avatar Aug 18 '22 20:08 Hackwar

@Hackwar what can we do here? clean the error or mark as exception for phpcs?

HLeithner avatar Sep 06 '22 09:09 HLeithner

Most of these should be fixed. Some would have to be marked as exclusions. Will look at that soon.

Hackwar avatar Sep 06 '22 09:09 Hackwar

This needs a thorough code review. All changes are outdated code which we never removed.

Hackwar avatar Sep 13 '22 19:09 Hackwar

Either this needs to be split into chunks with propper teating instructions or rebased to 5.0 and merged there early. But I wouldn't merge this in a minor only by code review.

laoneo avatar Sep 24 '22 18:09 laoneo

Please proper error handling using error_get_last() like used in the framework package and rebase on j5.

HLeithner avatar Oct 22 '22 15:10 HLeithner

@Hackwar can you solve the merge conflicts please

HLeithner avatar Oct 23 '22 09:10 HLeithner

I've split this PR up into 5 PRs, see above. When those are merged and they are upmerged into this branch, that should leave only the code to introduce the version check in phpcs. I don't think it is usefull to solve the conflicts before those are merged, since each will introduce new conflicts...

Hackwar avatar Oct 24 '22 12:10 Hackwar

This pull request has been automatically rebased to 5.1-dev.

HLeithner avatar Sep 30 '23 22:09 HLeithner

This pull request has been automatically rebased to 5.2-dev.

HLeithner avatar Apr 24 '24 09:04 HLeithner

Is anything happening with this? It has not been touched for over a year and it is unclear if anything will ever happen. It refers to it being partialy split into 5 pr but some of those have been closed as abandoned.

brianteeman avatar May 04 '24 19:05 brianteeman