Skip to content

Commit 09c2a38

Browse files
wouterjnicolas-grekas
authored andcommitted
[Components] Convert to native return types
1 parent 5b1a5d8 commit 09c2a38

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Slugger/AsciiSlugger.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ public function __construct(string $defaultLocale = null, array|\Closure $symbol
7474
$this->symbolsMap = $symbolsMap ?? $this->symbolsMap;
7575
}
7676

77-
/**
78-
* @return void
79-
*/
80-
public function setLocale(string $locale)
77+
public function setLocale(string $locale): void
8178
{
8279
$this->defaultLocale = $locale;
8380
}

UnicodeString.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,7 @@ public function startsWith(string|iterable|AbstractString $prefix): bool
338338
return $prefix === grapheme_extract($this->string, \strlen($prefix), \GRAPHEME_EXTR_MAXBYTES);
339339
}
340340

341-
/**
342-
* @return void
343-
*/
344-
public function __wakeup()
341+
public function __wakeup(): void
345342
{
346343
if (!\is_string($this->string)) {
347344
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);

0 commit comments

Comments
 (0)