mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-27 02:00:20 +02:00
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