Skip to content

Commit d920627

Browse files
MFTF-33294: Fixed strict type issue
1 parent f9da313 commit d920627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/Allure/Event/AddUniqueAttachmentEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getAttachmentFileName($filePathOrContents, $type): string
3131
{
3232
$filePath = $filePathOrContents;
3333

34-
if (!file_exists($filePath) || !is_file($filePath)) {
34+
if (!is_string($filePath) || !file_exists($filePath) || !is_file($filePath)) {
3535
//Save contents to temporary file
3636
$filePath = tempnam(sys_get_temp_dir(), 'allure-attachment');
3737
if (!file_put_contents($filePath, $filePathOrContents)) {

0 commit comments

Comments
 (0)