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

Update laminas mail 2.15 #7

Draft
wants to merge 365 commits into
base: master
Choose a base branch
from
Draft

Conversation

Alexandr-Penkin
Copy link
Member

No description provided.

glensc and others added 30 commits June 27, 2020 11:35
Signed-off-by: Elan Ruusamäe <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Change $params type in PHPDoc of Storage\Imap|Pop3
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Conflicts:
	CHANGELOG.md
Properly encode content-disposition header
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Use ::class constants instead of strings to class names

Conflicts:
	src/Header/HeaderLoader.php
Keeps internal consistency.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
- Set release date for 2.11.0 in CHANGELOG
- Updated branch aliases:
  - dev-master => 2.11.x-dev
  - dev-develop => 2.12.x-dev

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Johan Cwiklinski <[email protected]>
Signed-off-by: Johan Cwiklinski <[email protected]>
weierophinney and others added 30 commits September 20, 2021 15:10
- Add `~8.1.0` to list of allowed PHP versions
- Bump dependencies to versions known to work with 8.0/8.1 where possible
- Remove laminas-config as a dependency (never referenced other than in docblocks)
- Change how the package replaces zend-mail
  - Rename "replace" section to "conflict"
  - Change "zend-mail" constraint in that section to "*"
  - Remove dependency on laminas-zendframework-bridge

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
The various storage adapters are really only looking for maps.
This patch adds a trait, `Laminas\Mail\Storage\ParamsNormalizerTrait`, which provides functionality for producing an array map from any of a `Traversable` object, a standard object, or an array (validating that only string keys are provided).
Each storage adapter constructor has been updated to use this and to then validate the values pulled from the array.
When done, there were 4 new `MixedAssignment` errors that needed to be added to the Psalm baseline.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
- Bump laminas-mime to 2.9.1 to pick up a fix in its `Decode` class
- Provide alternative punycode conversion via ext-intl `idn_to_ascii()` function when present. true/punycode has an "implicit float to int conversion` error under 8.1 that leads to valid punycode values raising errors and not being converted.
- Ensure `GenericHeader` has string values for each of the field name and value.
  This is what they were already documented as being, but there was no verification, and contradictory behavior/documentation.
- `list() = explode()` raises a warning now if an index is not created, vs a notic.

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

Found under PHP 8.0

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Passing non-string value to ctype_digit is deprecated starting in 8.1

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Renames `ParamsNormalizerTrait` to `ParamsNormalizer`, making it a final class with a single static method.
Adds unit tests for the method, and updates code that referenced the trait previously to reference the static method.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Per review, usage of `ErrorHandler::start()/stop()` around explode/list operations is brittle and makes understanding what types are assigned.
Refactored these to use conditionals, checking for delimiters in strings before attempting such operations.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Filippo Tessarotto <[email protected]>
Signed-off-by: Filippo Tessarotto <[email protected]>
Signed-off-by: Filippo Tessarotto <[email protected]>
Signed-off-by: Filippo Tessarotto <[email protected]>
….x_Ik50M5d2

Merge release 2.14.3 into 2.15.x
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.