Skip to content

Commit

Permalink
Merge pull request #342 from shyim/patch-1
Browse files Browse the repository at this point in the history
fix: php 8.4 deprecation about implicit null arguments
  • Loading branch information
florianeckerstorfer authored Aug 27, 2024
2 parents 98d5b56 + 38e4d18 commit f48ab34
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 54 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- php: "8.3"
mode: experimental
os: ubuntu-20.04
- php: "8.4"
mode: experimental
os: ubuntu-20.04
fail-fast: false

runs-on: "${{ matrix.os }}"
Expand Down
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-mbstring": "*"
},
"conflict": {
Expand Down
2 changes: 1 addition & 1 deletion src/Slugify.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Slugify implements SlugifyInterface
* @param array $options
* @param RuleProviderInterface $provider
*/
public function __construct(array $options = [], RuleProviderInterface $provider = null)
public function __construct(array $options = [], ?RuleProviderInterface $provider = null)
{
$this->options = array_merge($this->options, $options);
$this->provider = $provider ? $provider : new DefaultRuleProvider();
Expand Down

0 comments on commit f48ab34

Please sign in to comment.