Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move doctrine/orm to require-dev #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

janedbal
Copy link

Hi, I used your repository to test our composer-dependency-analyser and I believe it found one issue:

  • There is not a single usage of any symbol from doctrine/orm in src so I believe it should not be listed in require.
    • So I moved it to require-dev
  • I also added this tool to CI so that such problem never happens again

@BenMorel
Copy link
Member

BenMorel commented Feb 4, 2024

Hi @janedbal!

This is a tough one. On one hand, your tool is right: we only implement stuff from DBAL. On the other hand, I remember having to raise the minimum Doctrine ORM version in 24adc1f.

Reason:

Fixes the following error with lowest dependencies:

"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

I guess this is because of conflicting versions between:

  • the lowest doctrine/orm versions compatible with the current version of date-time-doctrine
  • the latest PHP versions compatible with the current version of date-time-doctrine

This may be an issue with Doctrine itself, that doesn't specify the maximum PHP version allowed (I'm guilty of that with Brick, too).

We do want to continue testing with lowest deps, so for now I guess it makes sense to require doctrine/orm just to specify the minimum compatible version. Also, this package probably makes little sense without the ORM anyway, so it probably doesn't hurt?

@janedbal
Copy link
Author

janedbal commented Feb 7, 2024

This is totally up to you and understandable for such purpose.

I just checked your repo and it felt valid, but I do not have the context you have. Feel free to close this.

@janedbal
Copy link
Author

So, close this or ignore doctrine/orm and keep the tool?

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

Successfully merging this pull request may close these issues.

2 participants