summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
Diffstat (limited to 'php')
-rw-r--r--php/src/Template.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/php/src/Template.php b/php/src/Template.php
index 7497509..da905d7 100644
--- a/php/src/Template.php
+++ b/php/src/Template.php
@@ -226,8 +226,6 @@ function parse_template(string $template) : array {
}, []);
}
-namespace Luigi;
-
class Filters {
public static $FILTERS = null;
@@ -379,15 +377,14 @@ final class Cache implements \ArrayAccess {
}
}
- public function offsetUnset($key) {
- delete($this->lut[$key]);
- delete($this->templates[$key]);
+ public function offsetUnset($key) : void {
+ unset($this->lut[$key]);
+ unset($this->templates[$key]);
}
- public function offsetSet($key, $val) : bool {
- delete($this->lut[$key]);
+ public function offsetSet($key, $val) : void {
+ unset($this->lut[$key]);
$this->templates[$key] = $val;
- return isset($this->templates[$key]);
}