Skip to content

Commit 8efb5f9

Browse files
committed
add return type declarations #17
1 parent 15d9e25 commit 8efb5f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Traits/TestCaseTrait.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ trait TestCaseTrait
1919
* Return the name of the class, used for testing.
2020
* @return string
2121
*/
22-
public static function getClassName()
22+
public static function getClassName(): string
2323
{
2424
return SapRfc::class;
2525
}
@@ -28,7 +28,7 @@ public static function getClassName()
2828
* Get the name of the PHP module.
2929
* @return string
3030
*/
31-
public static function getModuleName()
31+
public static function getModuleName(): string
3232
{
3333
return 'sapnwrfc';
3434
}
@@ -37,7 +37,7 @@ public static function getModuleName()
3737
* Get the path to the PHP/SAP configuration file.
3838
* @return string
3939
*/
40-
public static function getSapConfigFile()
40+
public static function getSapConfigFile(): string
4141
{
4242
return dirname(__DIR__) . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'sap.json';
4343
}
@@ -46,7 +46,7 @@ public static function getSapConfigFile()
4646
* Get the path to the filename containing the SAP RFC module mockups.
4747
* @return string
4848
*/
49-
public static function getModuleTemplateFile()
49+
public static function getModuleTemplateFile(): string
5050
{
5151
return dirname(__DIR__) . DIRECTORY_SEPARATOR . 'helper' . DIRECTORY_SEPARATOR . 'SAPNWRFC.php';
5252
}
@@ -55,7 +55,7 @@ public static function getModuleTemplateFile()
5555
* Get an array of valid SAP RFC module function or class method names.
5656
* @return array
5757
*/
58-
public static function getValidModuleFunctions()
58+
public static function getValidModuleFunctions(): array
5959
{
6060
return [
6161
'clearFunctionDescCache',

0 commit comments

Comments
 (0)