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

Fix build #303

Merged
merged 5 commits into from
Jan 24, 2020
Merged

Fix build #303

merged 5 commits into from
Jan 24, 2020

Conversation

greg0ire
Copy link
Member

No description provided.

@greg0ire greg0ire changed the base branch from master to 3.3.x December 30, 2019 22:06
@greg0ire
Copy link
Member Author

greg0ire commented Dec 30, 2019

🤔 the 7.4 job fails, maybe it doesn't pull the same deps as the other jobs? EDIT: doesn't look like it from the output

@greg0ire greg0ire changed the title Fix build WIP: Fix build Dec 30, 2019
@greg0ire
Copy link
Member Author

I now believe this has to do with the data-fixtures lib

@greg0ire
Copy link
Member Author

I made a PR to address this: doctrine/data-fixtures#333

@greg0ire greg0ire changed the title WIP: Fix build Fix build Jan 13, 2020
@greg0ire
Copy link
Member Author

Ok so now it's slightly better… but the version of the lib I'm requiring requires php 7.2… should I drop 7.1?

A backwards-compatibility layer has been added to persistence to help
consumers move to the new namespacing. It is based on class aliases,
which means the type declaration changes should not be a BC-break: types
are the same.
See doctrine/persistence#71

This means:
- using the new namespaces
- adding autoload calls for new types to types that may be extended and
use persistence types in type declarations of non-constructor methods,
so that signature compatibility is recognized by old versions of php.
Luckily, there are none of those in this bundle.

This explicitely requires the persistence lib, which was an
unworded dependency of this bundle. I think it was not added because it
the depency was not noticed, but there might be more implicit
dependencies (doctrine/common, doctrine/doctrine-bundle).

Addressing the deprecations fixes the unit tests, because one of them
was expecting the old namespace in an exception message.
It is recommended to do so.
To be reverted on master, where the deprecation can be addressed by
upgrading doctrine/data-fixtures (the latest version require php ^7.2,
which we cannot use on 3.3.x).
@greg0ire greg0ire requested a review from a team January 13, 2020 19:46
Copy link

@dmaicher dmaicher left a comment

Choose a reason for hiding this comment

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

LGTM

@greg0ire greg0ire merged commit 9a6a738 into doctrine:3.3.x Jan 24, 2020
@greg0ire greg0ire deleted the fix-build branch January 24, 2020 06:56
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.

3 participants