Skip to content

Commit

Permalink
fix: php 8.4 deprecation (#30)
Browse files Browse the repository at this point in the history
* fix: php 8.4 deprecation

* ci: add php 8.4
  • Loading branch information
shyim authored Aug 29, 2024
1 parent 34efe65 commit 0c78eaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -39,11 +39,11 @@ jobs:
strategy:
fail-fast: true
matrix:
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3', '8.4']

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion src/Rize/UriTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class UriTemplate
$base_uri,
$params = array();

public function __construct($base_uri = '', $params = array(), Parser $parser = null)
public function __construct($base_uri = '', $params = array(), ?Parser $parser = null)
{
$this->base_uri = $base_uri;
$this->params = $params;
Expand Down

0 comments on commit 0c78eaa

Please sign in to comment.