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

2.9.x #3

Open
wants to merge 11 commits into
base: zoonru_2.9.x
Choose a base branch
from
Open

2.9.x #3

wants to merge 11 commits into from

Conversation

Alexandr-Penkin
Copy link
Member

No description provided.

weierophinney and others added 11 commits September 2, 2021 15:44
- Adds 8.1 to list of PHP constraints
- Modifies how package replaces zend-mime:
  - Changes "replace" section to "conflict", and changes zend-mime constraint in that section to "*"
  - Removes laminas-zendframework-bridge as requirement
- Bumps laminas-coding-standard to 2.2 series

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Also includes removal of file-level docblocks

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
We have a circular dependency scenario between laminas-mail and laminas-mime.
laminas-mail depends on laminas-mime for its MIME parsing capabilities.
laminas-mime decodes headers to a laminas-mail `Headers` instance.
Unfortunately the `Headers` class implements `Iterator`, and, as such, we get deprecations under 8.1 unless the `#[ReturnTypeWillChange]` attribute to affected methods.

The solution here is to temporarily inline the `Headers` class as a test asset until laminas-mail is updated to work on PHP 8.1.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
- We no longer need to exclude builds, as those PHP versions are no longer supported.
- We DO need to ignore platform PHP requirements for PHP 8.1.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
First version providing HeaderLocator class

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
…s-mail implementation

- Use `files` autoloader to load the local `Headers` version
- Ensure that the import for `ReturnTypeWillChange` attribute is not removed by phpcs

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Found this while testing laminas-mail; $wantedName has a default `null` value, which means that when calling `strtolower()` on that value, we may raise a deprecation notice under 8.1 as `null` values are no longer allowed to that function.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
…empty-string

Do not pass null value to strtolower
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