Skip to content

Commit b13cb17

Browse files
committed
Fix PHP 8.1 deprecation issue (fixes #46)
1 parent 9526bed commit b13cb17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

VersionControl.module

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* changes to individual fields and store them in a series of custom database
1313
* tables, along with required metadata, such as a running revision number.
1414
*
15-
* @copyright 2013-2021 Teppo Koivula
15+
* @copyright 2013-2022 Teppo Koivula
1616
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License, version 2
1717
* @todo regenerate data when fields are added to a tracked Template/Fieldgroup (see ProcessWire issue #1247)
1818
*/
@@ -29,7 +29,7 @@ class VersionControl extends WireData implements Module, ConfigurableModule {
2929
'summary' => 'Version control features for page content.',
3030
'href' => 'https://modules.processwire.com/modules/version-control/',
3131
'author' => 'Teppo Koivula',
32-
'version' => '1.3.3',
32+
'version' => '1.3.4',
3333
'singular' => true,
3434
'autoload' => true,
3535
'installs' => array(
@@ -945,7 +945,7 @@ class VersionControl extends WireData implements Module, ConfigurableModule {
945945
'diff' => array(
946946
'timeout' => (int) $this->diff_timeout,
947947
'editCost' => (int) $this->diff_efficiency_cleanup_edit_cost,
948-
'cleanup' => ucfirst($this->diff_cleanup),
948+
'cleanup' => ucfirst((string) $this->diff_cleanup),
949949
),
950950
'pageID' => $page->id,
951951
'moduleDir' => $this->config->urls->{$this->className()},

0 commit comments

Comments
 (0)