Skip to content

Commit 0fd78d6

Browse files
authored
userOwner is nullable (#1758)
1 parent 4b96762 commit 0fd78d6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Class/Schema/ClassDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function __construct(
7575
#[Property(description: 'Modification date timestamp', type: 'integer', example: 1700000000)]
7676
private readonly ?int $modificationDate,
7777
#[Property(description: 'User id of owner', type: 'integer', example: 1)]
78-
private readonly int $userOwner,
78+
private readonly ?int $userOwner,
7979
#[Property(
8080
description: 'Namespace of parent class',
8181
type: 'string',
@@ -175,7 +175,7 @@ public function getModificationDate(): ?int
175175
return $this->modificationDate;
176176
}
177177

178-
public function getUserOwner(): int
178+
public function getUserOwner(): ?int
179179
{
180180
return $this->userOwner;
181181
}

src/Class/Schema/CustomLayout/CustomLayout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(
5454
#[Property(description: 'Modification date timestamp', type: 'integer', example: 1633036800)]
5555
private readonly int $modificationDate,
5656
#[Property(description: 'User id of owner', type: 'integer', example: 1)]
57-
private readonly int $userOwner,
57+
private readonly ?int $userOwner,
5858
#[Property(description: 'Class id', type: 'string', example: 'Product')]
5959
private readonly string $classId,
6060
#[Property(description: 'Whether it is the default layout', type: 'boolean', example: false)]
@@ -94,7 +94,7 @@ public function getModificationDate(): int
9494
return $this->modificationDate;
9595
}
9696

97-
public function getUserOwner(): int
97+
public function getUserOwner(): ?int
9898
{
9999
return $this->userOwner;
100100
}

0 commit comments

Comments
 (0)