Skip to content

Commit 70aa655

Browse files
committed
Phpstan: fix warnings on sfFileCache and sfMemcache implementation, add missing returns
1 parent b9aa8ca commit 70aa655

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/cache/sfFileCache.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ public function removePattern($pattern)
122122
@unlink($path);
123123
}
124124
}
125+
126+
return true;
125127
}
126128

127129
/**

lib/cache/sfMemcacheCache.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ public function clean($mode = sfCache::ALL)
145145
if (sfCache::ALL === $mode) {
146146
return $this->memcache->flush();
147147
}
148+
149+
return true;
148150
}
149151

150152
/**
@@ -188,6 +190,8 @@ public function removePattern($pattern)
188190
$this->remove(substr($key, strlen($this->getOption('prefix'))));
189191
}
190192
}
193+
194+
return true;
191195
}
192196

193197
/**

0 commit comments

Comments
 (0)