From 7d29fdf7195ee70966dcd1f3d4a2399cbcd5fafd Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Tue, 23 Jun 2026 18:35:32 -0400 Subject: [PATCH] use $this instead of self --- flight/template/View.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/flight/template/View.php b/flight/template/View.php index 5e8b516..51ed7c7 100644 --- a/flight/template/View.php +++ b/flight/template/View.php @@ -50,10 +50,9 @@ class View * * @param string|iterable $key * @param mixed $value Value - * - * @return self + * @return $this */ - public function set($key, $value = null): self + public function set($key, $value = null) { if (\is_iterable($key)) { foreach ($key as $k => $v) { @@ -79,7 +78,7 @@ class View * Unsets a template variable. If no key is passed in, clear all variables * @return $this */ - public function clear(?string $key = null): self + public function clear(?string $key = null) { if ($key === null) { $this->vars = [];