Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
fix: ensure local Headers implementation is loaded in favor of lamina…
Browse files Browse the repository at this point in the history
…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 <matthew@weierophinney.net>
  • Loading branch information
weierophinney committed Sep 2, 2021
1 parent 14bb81e commit 1cac0dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
}
},
"autoload-dev": {
"files": [
"test/TestAsset/Mail/Headers.php"
],
"psr-4": {
"LaminasTest\\Mime\\": "test/",
"Laminas\\Mail\\": "test/TestAsset/Mail/"
"LaminasTest\\Mime\\": "test/"
}
},
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion test/TestAsset/Mail/Headers.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php // phpcs:disable WebimpressCodingStandard.NamingConventions.ValidVariableName.NotCamelCaps
<?php // phpcs:disable WebimpressCodingStandard.NamingConventions.ValidVariableName.NotCamelCaps,SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse

declare(strict_types=1);

Expand All @@ -10,6 +10,7 @@
use Laminas\Loader\PluginClassLocator;
use Laminas\Mail\Header\GenericHeader;
use Laminas\Mail\Header\HeaderInterface;
use ReturnTypeWillChange;
use Traversable;

use function array_keys;
Expand Down

0 comments on commit 1cac0dc

Please sign in to comment.