Use PHP 7.4 featers and PHP 8 polyfills

This commit is contained in:
David Stone
2025-02-08 13:57:32 -07:00
parent 8bea6067cd
commit b41dc2b2eb
550 changed files with 15270 additions and 14627 deletions

View File

@ -35,17 +35,17 @@ class SSO_Broker extends Broker {
*
* @param array<string,mixed> $params The params to be passed.
*/
public function getAttachUrl(array $params = array()): string {
public function getAttachUrl(array $params = []): string {
if ($this->getToken() === null) {
$this->generateToken();
}
$data = array(
$data = [
'broker' => $this->broker,
'token' => $this->getToken(),
'checksum' => $this->generateChecksum('attach'),
);
];
return add_query_arg($data + $params, $this->url);
}