Skip to content

Commit

Permalink
Merge pull request #322 from antoniovj1/main
Browse files Browse the repository at this point in the history
fix: Add types to avoid PHP 8.2 deprecation warning
  • Loading branch information
florianeckerstorfer authored Jul 31, 2023
2 parents 9b2f71a + c88fc6e commit 6ab49c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Slugify.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function __construct(array $options = [], RuleProviderInterface $provider
*
* @return string Slugified version of the string
*/
public function slugify($string, $options = null)
public function slugify(string $string, $options = null): string
{
// BC: the second argument used to be the separator
if (is_string($options)) {
Expand Down
2 changes: 1 addition & 1 deletion src/SlugifyInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ interface SlugifyInterface
*
* @api
*/
public function slugify($string, $options = null);
public function slugify(string $string, $options = null): string;
}

0 comments on commit 6ab49c8

Please sign in to comment.