Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Allow usage of v3 releases of zend-eventmanager and zend-stdlib #43

Merged

Conversation

weierophinney
Copy link
Member

This patch replaces #42.

This patch updates the dependency constraints as follows:

  • PHP allows ^5.5 || ^7.0, putting it in line with other components. That said, I'm aware of PHP 7 differences that currently mean tests do not pass (due to changes in sorting behavior).
  • zend-eventmanager allows ^2.6 || ^3.0
    • Provides slight updates to Zend\Ldap\Node to ensure that a lazy-loaded EventManager instance is created in a way that works against both major versions.
  • zend-stdlib allows ^2.7 || ^3.0

To ensure that the component works against each set of releases, this patch also updates the travis configuration to test against lowest supported verions, a lockfile, and latest versions.

The APIs consumed from each are identical between versions, allowing the
component to target either.

One change was required, however: `Zend\Ldap\Node` needed slight changes to how
it marshals an `EventManager` instance to ensure it works across both versions.
Since this patch is specifying two different series of releases, we need to
ensure we test against them all. As such, this introduces:

- composer.lock file
- composer scripts for testing, CS, and coverage uploads
- travis configuration to test each PHP version against lowest, locked, and latest.
@heiglandreas
Copy link
Member

Thanks for the work! This makes handling the failing test to a top priority. That might delay tagging the 2.7 release but I believe that should be fixed before we get this into a new release!

@weierophinney
Copy link
Member Author

@heiglandreas My pleasure. Good luck with that test. 😄

null,
'No LDAP connection specified.',
Exception\LdapException::LDAP_OTHER
);
Copy link
Member Author

Choose a reason for hiding this comment

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

These fixes were because phpcs was giving me grief about multiple arguments. I figured I'd go ahead and fix them.

Copy link
Member

Choose a reason for hiding this comment

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

I already thought so and it definitely improves readability!

@heiglandreas heiglandreas merged commit 8f9aade into zendframework:develop Apr 21, 2016
heiglandreas added a commit that referenced this pull request Apr 21, 2016
@weierophinney weierophinney deleted the feature/eventmanager-v3 branch April 21, 2016 20:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants