Skip to content

Commit 014611d

Browse files
committed
Use core dev-main
1 parent 470a02c commit 014611d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"require": {
4444
"php": "^8.1",
45-
"phplist/core": "dev-dev",
45+
"phplist/core": "dev-main",
4646
"friendsofsymfony/rest-bundle": "*",
4747
"symfony/test-pack": "^1.0",
4848
"symfony/process": "^6.4",

src/Subscription/Request/SubscriberAttributeDefinitionRequest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ class SubscriberAttributeDefinitionRequest implements RequestInterface
8282

8383
public function getDto(): AttributeDefinitionDto
8484
{
85-
$type = $this->type === null ? null : AttributeTypeEnum::from($this->type);
85+
$type = null;
86+
if ($this->type !== null) {
87+
$type = AttributeTypeEnum::tryFrom($this->type);
88+
}
8689
return new AttributeDefinitionDto(
8790
name: $this->name,
8891
type: $type,

0 commit comments

Comments
 (0)