File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app/code/Magento/Store/Model Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2011 Adobe
4+ * All Rights Reserved .
55 */
6+ declare (strict_types=1 );
7+
68namespace Magento \Store \Model ;
79
810use Laminas \Uri \UriFactory ;
@@ -828,7 +830,7 @@ public function isCurrentlySecure()
828830 $ port = $ uri ->getPort ();
829831 $ serverPort = $ this ->_request ->getServer ('SERVER_PORT ' );
830832
831- return $ uri ->getScheme () == 'https ' && isset ( $ serverPort) && $ port == $ serverPort ;
833+ return $ uri ->getScheme () === 'https ' && $ serverPort !== null && $ port == $ serverPort ;
832834 }
833835
834836 /*************************************************************************************
You can’t perform that action at this time.
0 commit comments