Skip to content

Commit

Permalink
Fix short array syntax (#34802)
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Jul 18, 2021
1 parent ced954f commit db24fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_installer/models/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ protected function _getPackageFromUrl()
// We only allow http & https here
$uri = new JUri($url);

if (!in_array($uri->getScheme(), ['http', 'https']))
if (!in_array($uri->getScheme(), array('http', 'https')))
{
JError::raiseWarning('', JText::_('COM_INSTALLER_MSG_INSTALL_INVALID_URL_SCHEME'));

Expand Down

0 comments on commit db24fef

Please sign in to comment.