Skip to content

Commit 05c2f2f

Browse files
committed
MAGETWO-60201: Test UnsecureFunctionsUsageTest fails in case of changes in files with unsecure code
- changes after CR
1 parent 13251a4 commit 05c2f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/static/framework/Magento/TestFramework/Utility/ChangedFiles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function (&$file) {
5656
* Get changed content.
5757
*
5858
* @param string $fileName
59-
* @return string|null
59+
* @return string
6060
*/
6161
public static function getChangedContent($fileName)
6262
{
@@ -65,7 +65,7 @@ public static function getChangedContent($fileName)
6565
$changedContent = file_get_contents(BP . sprintf(self::CHANGED_FILES_CONTENT_FILE, $extension));
6666
$data = json_decode($changedContent, true);
6767

68-
return isset($data[$fileName]) ? $data[$fileName] : [];
68+
return isset($data[$fileName]) ? $data[$fileName] : '';
6969
}
7070

7171
/**

0 commit comments

Comments
 (0)