Skip to content

Commit

Permalink
php 7.4 backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Jun 14, 2024
1 parent bfb267b commit 7aed4e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions classes/option/field_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ public static function get_subfields() {
* Check if there is a difference between the former and the new values of the formdata.
*
* @param stdClass $formdata
* @param ?field_base $self // Should always be given. Otherwise this will not
* @param mixed $mockdata // Only needed if there the object needs params for the save_data function.
* @param field_base $self // Should always be given. Otherwise this will not
* @param ?object $mockdata // Only needed if there the object needs params for the save_data function.
* @param string $key
* @param mixed $value
*
Expand All @@ -199,10 +199,10 @@ public static function get_subfields() {
*/
public function check_for_changes(
stdClass $formdata,
?field_base $self = null,
mixed $mockdata = '',
field_base $self,
?object $mockdata = null,
string $key = '',
mixed $value = ''): array {
mixed $value = null): array {

if (!isset($self)) {
return [];
Expand Down

0 comments on commit 7aed4e7

Please sign in to comment.