File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/code/Magento/PageBuilder/Controller/Adminhtml/Template Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ private function validate(RequestInterface $request)
202
202
* @throws \Magento\Framework\Exception\FileSystemException
203
203
* @throws \Magento\Framework\Exception\InputException
204
204
*/
205
- private function storePreviewImage (RequestInterface $ request ) : string
205
+ private function storePreviewImage (RequestInterface $ request ) : ? string
206
206
{
207
207
$ mediaDir = $ this ->filesystem
208
208
->getDirectoryWrite (\Magento \Framework \App \Filesystem \DirectoryList::MEDIA );
@@ -240,5 +240,7 @@ private function storePreviewImage(RequestInterface $request) : string
240
240
// Store the preview image within the new entity
241
241
return $ filePath ;
242
242
}
243
+
244
+ return null ;
243
245
}
244
246
}
You can’t perform that action at this time.
0 commit comments