diff options
| author | Simon Wisselink <wisskid@users.noreply.github.com> | 2022-02-06 22:09:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-06 22:09:39 +0100 |
| commit | 17025423e1e88baaaf7651f34ab8e3cd16fba1ab (patch) | |
| tree | 63f708f27654f2fb79b1440aa5403d1000117835 | |
| parent | f90348971b8c91f527ed3b3436f319d7ea22d825 (diff) | |
| parent | 18d3e564daf9057adf608db55e39c374b2aa62a3 (diff) | |
| download | smarty-17025423e1e88baaaf7651f34ab8e3cd16fba1ab.tar.gz smarty-17025423e1e88baaaf7651f34ab8e3cd16fba1ab.tar.bz2 smarty-17025423e1e88baaaf7651f34ab8e3cd16fba1ab.zip | |
Merge pull request #724 from smarty-php/bugfix/706
Fix PHP 8.1 deprecation notices in demo/plugins/cacheresource.pdo.php
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | demo/plugins/cacheresource.pdo.php | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 39e83483..695c17f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- PHP 8.1 deprecation notices in demo/plugins/cacheresource.pdo.php [#706](https://github.com/smarty-php/smarty/issues/706) + ## [4.1.0] - 2022-02-06 ### Added diff --git a/demo/plugins/cacheresource.pdo.php b/demo/plugins/cacheresource.pdo.php index a80cd698..ae3ebbf7 100644 --- a/demo/plugins/cacheresource.pdo.php +++ b/demo/plugins/cacheresource.pdo.php @@ -196,7 +196,7 @@ class Smarty_CacheResource_Pdo extends Smarty_CacheResource_Custom * @return void * @access protected */ - protected function fetch($id, $name, $cache_id = null, $compile_id = null, &$content, &$mtime) + protected function fetch($id, $name, $cache_id, $compile_id, &$content, &$mtime) { $stmt = $this->getFetchStatement($this->fetchColumns, $id, $cache_id, $compile_id); $stmt->execute(); @@ -244,7 +244,7 @@ class Smarty_CacheResource_Pdo extends Smarty_CacheResource_Custom * @return boolean success * @access protected */ - protected function save($id, $name, $cache_id = null, $compile_id = null, $exp_time, $content) + protected function save($id, $name, $cache_id, $compile_id, $exp_time, $content) { $stmt = $this->pdo->prepare($this->insertStatement); $stmt->bindValue('id', $id); |
