Skip to content

Commit

Permalink
fix PHP 8.1 deprecation notices in demo/plugins/cacheresource.pdo.php
Browse files Browse the repository at this point in the history
Fixes #706
  • Loading branch information
wisskid committed Feb 6, 2022
1 parent 612094d commit 0d2c38b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

### Added
- PHP8.1 compatibility [#713](https://github.com/smarty-php/smarty/pull/713)

Expand Down
4 changes: 2 additions & 2 deletions demo/plugins/cacheresource.pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected function getFetchStatement($columns, $id, $cache_id = null, $compile_i
* @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();
Expand Down Expand Up @@ -244,7 +244,7 @@ protected function fetch($id, $name, $cache_id = null, $compile_id = null, &$con
* @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);
Expand Down

0 comments on commit 0d2c38b

Please sign in to comment.