Skip to content

Commit 4427691

Browse files
committed
handle PHP8.4 deprecation warnings
1 parent 44386cc commit 4427691

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dt-mapping/class-migration-engine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static function get_current_db_migration(){
144144

145145
class DT_Mapping_Module_Migration_Lock_Exception extends Exception
146146
{
147-
public function __construct( $message = null, $code = 0, Exception $previous = null ) {
147+
public function __construct( $message = null, $code = 0, ?Exception $previous = null ) {
148148
/*
149149
* Instead of throwing a simple exception that the migration lock is
150150
* held, it would be good for the user to if there any previous errors,

includes/class-migration-engine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected static function sanity_check_expected_tables( array $expected_tables )
140140

141141
class DT_Webform_Migration_Lock_Exception extends Exception
142142
{
143-
public function __construct( $message = null, $code = 0, Exception $previous = null ) {
143+
public function __construct( $message = null, $code = 0, ?Exception $previous = null ) {
144144
/*
145145
* Instead of throwing a simple exception that the migration lock is
146146
* held, it would be good for the user to if there any previous errors,

0 commit comments

Comments
 (0)