Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Add PHP 8.2 and Monolog 3 to Test Matrix, drop Support for PHP 7.2 and 7.3 #20

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

alexander-schranz
Copy link
Collaborator

@alexander-schranz alexander-schranz commented Mar 15, 2023

Currently PHP 8.2 and Monolog 3 is not tested.

Requires:

@alexander-schranz alexander-schranz changed the title Add text matrix for PHP 8.2 and Monolog 3 Add PHP 8.2 and Monolog 3 to Test Matrix Mar 15, 2023
@alexander-schranz alexander-schranz marked this pull request as draft March 15, 2023 20:18
composer.json Outdated
@@ -21,10 +21,11 @@
"require-dev": {
"doctrine/doctrine-bundle": "^1.8 || ^2.0",
"doctrine/phpcr-odm": "^1.4",
"jackalope/jackalope": "^1.0 || ^2.0@dev",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also ^2.0@dev currently not possible because of:

#20 (comment)

Bildschirmfoto 2023-03-16 um 11 53 38

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like i need to upgrade the phpcr-bundle for jackalope 2 - i did not do that yet.

for the need to require jackalope: i think this has been necessary before as well - phpcr-odm does not require a specific phpcr implementation. is the ci build of this bundle not requiring jackalope dynamically?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the need to require jackalope: i think this has been necessary before as well - phpcr-odm does not require a specific phpcr implementation. is the ci build of this bundle not requiring jackalope dynamically

It seems not: https://github.com/dantleech/phpcr-migrations-bundle/blob/master/.github/workflows/ci.yaml

There is no log of the last run but atleast last year it seems to have run without problems without require a phpcr implementation 🤔 :

https://github.com/dantleech/phpcr-migrations-bundle/commits/master

@alexander-schranz alexander-schranz changed the title Add PHP 8.2 and Monolog 3 to Test Matrix Add PHP 8.2 and Monolog 3 to Test Matrix, drop Support for PHP 7.2 and 7.3 Mar 16, 2023
@alexander-schranz
Copy link
Collaborator Author

alexander-schranz commented Mar 16, 2023

I thought it is not worth to invest in supporting PHP 7.2 and 7.3 and remove it from the matrix and composer.json:

Bildschirmfoto 2023-03-16 um 12 01 00

@dantleech what do you think about dropping PHP 7.2 / 7.3 support. For Sulu 1.6 we require 7.4 still if there would appear any bugs but only until we hopelly release this year Sulu 3.0.

@alexander-schranz alexander-schranz marked this pull request as ready for review March 16, 2023 11:01
@dantleech
Copy link
Owner

what do you think about dropping PHP 7.2 / 7.3 support.

drop away!

composer.json Outdated
"symfony/symfony": "^4.4 || ^5.4 || ^6.0",
"symfony/monolog-bundle": "^2.0 || ^3.0",
"symfony/phpunit-bridge": "^5.4 || ^6.0",
"symfony-cmf/testing": "^2.1 || ^3.0 || ^4.0"
"symfony-cmf/testing": "dev-master as 4.5.0"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbu I think we could tag the merged symfony-cmf/Testing#213 so I can remove here dev-master?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, this went under. i created the tag now: https://github.com/symfony-cmf/Testing/releases/tag/4.4.2

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

composer.json updated

composer.json Outdated
@@ -21,10 +21,13 @@
"require-dev": {
"doctrine/doctrine-bundle": "^1.8 || ^2.0",
"doctrine/phpcr-odm": "^1.4",
"jackalope/jackalope": "^1.0",
"jackalope/jackalope-doctrine-dbal": "^1.0",
"jackalope/jackalope-jackrabbit": "^1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would only install one of dbal or jackrabbit. and you don't need to require jackalope/jackalope separately, it is required by the actual implementations.

as to why this suddenly comes up: maybe old versions of symfony-cmf/testing did require jackalope but the newest one no longer does? you'd need to compare composer.json of symfony-cmf/testing if you want to be sure.

but imho requiring something explicitly here is a good idea anyways. you might also need to do a bit of setup in the ci steps to be able to use the implementation if there are functional tests in this repository.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i required the jackalope-doctrine-dbal for now. Maybe @dantleech can tell us if something specific is required, from my side ready for review :)

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks sane to me. but i am no maintainer of this bundle and have not used it...

i'd suggest to squash the commits as there was some back and forth in the commits ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants