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

Address deprecations from persistence lib #1102

Merged

Conversation

greg0ire
Copy link
Contributor

@greg0ire greg0ire commented Jan 12, 2020

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, none of those were found in this package.
    More details on this at
    https://dev.to/greg0ire/how-to-deprecate-a-type-in-php-48cf

Subject

I am targeting this branch, because this is BC

Changelog

### Fixed
- deprecations from `doctrine/persistence`

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, none of those were found in this package.
More details on this at
https://dev.to/greg0ire/how-to-deprecate-a-type-in-php-48cf
@greg0ire greg0ire added the patch label Jan 12, 2020
@greg0ire greg0ire merged commit d533a7e into sonata-project:3.x Jan 12, 2020
@greg0ire greg0ire deleted the address-deprecations-from-persistence branch January 12, 2020 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants