diff --git a/src/BaseListView.php b/src/BaseListView.php index bc6be0878..40b4cb569 100644 --- a/src/BaseListView.php +++ b/src/BaseListView.php @@ -223,7 +223,7 @@ final public function urlParameterProvider(?UrlParameterProviderInterface $provi return $new; } - final public function enableMultiSort(bool $enable = true): self + final public function enableMultiSort(bool $enable = true): static { $new = clone $this; $new->enableMultiSort = $enable; @@ -466,11 +466,10 @@ protected function prepareOrder(array $order): array * * {@see headerAttributes} */ - public function header(string $content): self + public function header(string $content): static { $new = clone $this; $new->header = $content; - return $new; } @@ -479,11 +478,10 @@ public function header(string $content): self * * @param array $attributes Attribute values indexed by attribute names. */ - public function headerAttributes(array $attributes): self + public function headerAttributes(array $attributes): static { $new = clone $this; $new->headerAttributes = $attributes; - return $new; } @@ -662,11 +660,10 @@ final public function summaryAttributes(array $attributes): static * * @psalm-param array $toolbar */ - public function toolbar(string $content): self + public function toolbar(string $content): static { $new = clone $this; $new->toolbar = $content; - return $new; }