Skip to content

Commit

Permalink
PHP 8.1: Suppress deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Penny authored and chrispenny committed Jun 29, 2022
1 parent b873239 commit 636c679
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Extensions/ModalController.php
Expand Up @@ -22,9 +22,9 @@ class ModalController extends Extension
'editorAnchorLink/$ItemID' => 'editorAnchorLink', // Matches LeftAndMain::methodSchema args
];

private static $allowed_actions = array(
private static $allowed_actions = [
'DynamicLink',
);
];

/**
* Builds and returns the external link form
Expand Down
1 change: 1 addition & 0 deletions src/Models/Link.php
Expand Up @@ -187,6 +187,7 @@ function setData($data): JsonData
return $jsonData;
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
$typeKey = Registry::singleton()->keyByClassName(static::class);
Expand Down

0 comments on commit 636c679

Please sign in to comment.