Skip to content

Commit

Permalink
Merge pull request #6 from bigcommerce/php84
Browse files Browse the repository at this point in the history
chore(platform): PHPMNT-177 Add PHP 8.4 to CircleCI test matrix
  • Loading branch information
TomA-R authored Dec 29, 2024
2 parents f56314f + edda41e commit 1c9ded4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ workflows:
- php/phpunit-tests:
matrix:
parameters:
php-version: [ "8.0", "8.1", "8.2", "8.3" ]
php-version: [ "8.0", "8.1", "8.2", "8.3", "8.4" ]
- php/composer-github:
filters:
tags:
Expand Down
4 changes: 2 additions & 2 deletions src/Dflydev/Hawk/Header/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Header
private $fieldValue;
private $attributes;

public function __construct($fieldName, $fieldValue, array $attributes = null)
public function __construct($fieldName, $fieldValue, ?array $attributes = null)
{
$this->fieldName = $fieldName;
$this->fieldValue = $fieldValue;
Expand All @@ -25,7 +25,7 @@ public function fieldValue()
return $this->fieldValue;
}

public function attributes(array $keys = null)
public function attributes(?array $keys = null)
{
if (null === $keys) {
return $this->attributes;
Expand Down
4 changes: 2 additions & 2 deletions src/Dflydev/Hawk/Header/HeaderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class HeaderFactory
{
public static function create($fieldName, array $attributes = null)
public static function create($fieldName, ?array $attributes = null)
{
$fieldValue = 'Hawk';

Expand All @@ -22,7 +22,7 @@ public static function create($fieldName, array $attributes = null)
return new Header($fieldName, $fieldValue, $attributes);
}

public static function createFromString($fieldName, $fieldValue, array $requiredKeys = null)
public static function createFromString($fieldName, $fieldValue, ?array $requiredKeys = null)
{
return static::create(
$fieldName,
Expand Down
2 changes: 1 addition & 1 deletion src/Dflydev/Hawk/Header/HeaderParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class HeaderParser
{
public static function parseFieldValue($fieldValue, array $requiredKeys = null)
public static function parseFieldValue($fieldValue, ?array $requiredKeys = null)
{
if (!str_starts_with($fieldValue, 'Hawk')) {
throw new NotHawkAuthorizationException;
Expand Down
2 changes: 1 addition & 1 deletion src/Dflydev/Hawk/Server/UnauthorizedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UnauthorizedException extends \Exception
private $attributes;
private $header;

public function __construct($message = null, array $attributes = null)
public function __construct($message = null, ?array $attributes = null)
{
parent::__construct($message);
$this->attributes = $attributes ?: array();
Expand Down

0 comments on commit 1c9ded4

Please sign in to comment.