Skip to content

Commit c9ea503

Browse files
committed
chore: update to latest main
1 parent 1d11dbd commit c9ea503

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

packages/mailer/LICENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
66

77
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
88

9-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

packages/mailer/src/MailerInitializer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
use Tempest\Mail\MailerConfig;
99
use Tempest\Reflection\ClassReflector;
1010
use Tempest\View\ViewRenderer;
11+
use UnitEnum;
1112

1213
final class MailerInitializer implements DynamicInitializer
1314
{
14-
public function canInitialize(ClassReflector $class, ?string $tag): bool
15+
public function canInitialize(ClassReflector $class, null|string|UnitEnum $tag): bool
1516
{
1617
return $class->getType()->matches(Mailer::class);
1718
}
1819

1920
#[Singleton]
20-
public function initialize(ClassReflector $class, ?string $tag, Container $container): Mailer
21+
public function initialize(ClassReflector $class, null|string|UnitEnum $tag, Container $container): Mailer
2122
{
2223
return new GenericMailer(
2324
mailerConfig: $container->get(MailerConfig::class, $tag),

packages/mailer/src/Testing/RestrictedMailerInitializer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88
use Tempest\Discovery\SkipDiscovery;
99
use Tempest\Mail\Mailer;
1010
use Tempest\Reflection\ClassReflector;
11+
use UnitEnum;
1112

1213
#[SkipDiscovery]
1314
final class RestrictedMailerInitializer implements DynamicInitializer
1415
{
15-
public function canInitialize(ClassReflector $class, ?string $tag): bool
16+
public function canInitialize(ClassReflector $class, null|string|UnitEnum $tag): bool
1617
{
1718
return $class->getType()->matches(Mailer::class);
1819
}
1920

2021
#[Singleton]
21-
public function initialize(ClassReflector $class, ?string $tag, Container $container): Mailer
22+
public function initialize(ClassReflector $class, null|string|UnitEnum $tag, Container $container): Mailer
2223
{
2324
return new RestrictedMailer($tag);
2425
}

0 commit comments

Comments
 (0)