Address deprecations from persistence#7953
Conversation
33c9fe3 to
788b5d8
Compare
271a2ec to
b3a221c
Compare
b3a221c to
3d9483f
Compare
4c6ee4e to
2905823
Compare
2905823 to
a19296a
Compare
alcaeus
left a comment
There was a problem hiding this comment.
LGTM. @nicolas-grekas do you want to give this another look before we merge it?
d76a879 to
5c71e38
Compare
|
Yes, can't say otherwise... |
Absolutely. Ping @beberlei - any chance we can move this into 2.7.2? |
29de7bb to
3482fc7
Compare
|
Rebased. IMO we should release persistence 2 with only the removal of the BC layer, allow it in all consuming packages, release said packages, and then require it in all consuming packages, removing BC layers in these packages at that moment, in quick succession. I know Doctrine is against bumping a major version of persistence in a minor, but maybe if we are changing our workflow towards majors that are less painful to upgrade to this could re-considered. |
3482fc7 to
4a068ec
Compare
|
I really appreciate all the hard work that went into this. Do we have a timetable on this? How can we help to give this a go? |
4a068ec to
2403c08
Compare
The base branch was changed.
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. More details on this at https://dev.to/greg0ire/how-to-deprecate-a-type-in-php-48cf
2403c08 to
bd8e7b9
Compare
…ctrine/orm" This reverts commit 9d0a705. The doctrine/persistence deprecations has been addressed uptream, see doctrine/orm#7953
…ire) This PR was squashed before being merged into the 3.4 branch. Discussion ---------- Remove patches for Doctrine bugs and deprecations | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | n/a | License | MIT | Doc PR | n/a This PR removes patches put in place because of a bug fixed in doctrine/dbal#3994, and because of deprecations addressed in doctrine/orm#7953 Commits ------- 2f305cd Remove patches for Doctrine bugs and deprecations
+ Added more PHP versions. + Fixed .travis.yml syntax deprecations. + Restricted doctrine/common: <3.0.0 in require-dev for now (doctrine/orm#7953).
+ Added more PHP versions (except for 7.3 - oroinc#73) + Fixed .travis.yml syntax deprecations. + Restricted doctrine/common: <3.0.0 in require-dev for now (doctrine/orm#7953).
+ Added more PHP versions (except for 7.3 - oroinc#73) + Fixed .travis.yml syntax deprecations. + Restricted doctrine/common: <3.0.0 in require-dev for now (doctrine/orm#7953).
+ Added more PHP versions (except for 7.3 and 7.4 - oroinc#73) + Fixed .travis.yml syntax deprecations. + Restricted doctrine/common: <3.0.0 in require-dev for now (doctrine/orm#7953).
+ Added more PHP versions (except for 7.3 and 7.4 - oroinc#73) + Fixed .travis.yml syntax deprecations. + Restricted doctrine/common: <3.0.0 in require-dev for now (doctrine/orm#7953).
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:
use persistence types in type declarations of non-constructor methods,
so that signature compatibility is recognized by old versions of php.
More details on this at
https://dev.to/greg0ire/how-to-deprecate-a-type-in-php-48cf
How can I test this on my project?
composer config repositories.greg0ire vcs https://github.com/greg0ire/doctrine-orm composer require doctrine/orm "dev-address-persistence-deprecations as v2.7.0"