aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-04 21:06:22 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-04 21:06:22 -0400
commitc52f1a3528a4acac197cd705f5a22e199b11a1cd (patch)
tree588f0b124fdfd215cc7350fa27b026149523c03a
parent9217fc6bc341059240c7d4b7f28e05717f45e9c9 (diff)
downloadluigi-template-c52f1a3528a4acac197cd705f5a22e199b11a1cd.tar.bz2
luigi-template-c52f1a3528a4acac197cd705f5a22e199b11a1cd.zip
php/src/Template.php: fix phan warnings
-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]);
}