Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "bsd",

"require": {
"xp-framework/compiler": "^9.0",
"xp-framework/compiler": "^9.3",
"xp-framework/imaging": "^11.0",
"xp-framework/command": "^12.0",
"xp-framework/networking": "^10.4",
Expand Down
2 changes: 1 addition & 1 deletion src/main/php/de/thekid/dialog/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Pagination {

/** @throws lang.IllegalArgumentException */
public function __construct(public readonly int $paged) {
public function __construct(public private(set) int $paged) {
if ($paged < 1) {
throw new IllegalArgumentException('Paged must be greater than 0');
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/php/de/thekid/dialog/SearchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class SearchResult {
public static $EMPTY= new self(new Document(), []);

public function __construct(
public readonly Document $meta,
public readonly iterable $documents,
public private(set) Document $meta,
public private(set) iterable $documents,
) { }
}
6 changes: 3 additions & 3 deletions src/main/php/de/thekid/dialog/import/Description.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php namespace de\thekid\dialog\import;

readonly class Description {
class Description {
public function __construct(
public array<string, mixed> $meta,
public string $content
public private(set) array<string, mixed> $meta,
public private(set) string $content
) { }
}
Loading