mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 12:10:10 +02:00
Merge pull request #439 from guilhermesiani/patch-3
refactor: add string return type
This commit is contained in:
@@ -10,7 +10,7 @@ class StringReverseWorker
|
||||
{
|
||||
}
|
||||
|
||||
public function run(string $text)
|
||||
public function run(string $text): string
|
||||
{
|
||||
return strrev($text);
|
||||
}
|
||||
|
Reference in New Issue
Block a user