Conflicting Files ? Pending

User tests: Successful: Unsuccessful:

avatar HLeithner
HLeithner
8 Apr 2021

Pull Request for Issue #31378 .

Summary of Changes

  • Updated array() to [] syntax
  • removed strtoupper on language hasKey call
  • replaced deprecated functions JFactory::getUser() and JFactory::getUser($userId)

Testing Instructions

Activate actionlog

Actual result BEFORE applying this Pull Request

Everything works

Expected result AFTER applying this Pull Request

Still works

Documentation Changes Required

No

avatar HLeithner HLeithner - open - 8 Apr 2021
avatar HLeithner HLeithner - change - 8 Apr 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2021
Category Front End Plugins
avatar infograf768
infograf768 - comment - 8 Apr 2021

drone not happy => phpcs

avatar ceford
ceford - comment - 9 Apr 2021

I just migrated to PHP 8 - logged in via different browser to create log events. Works OK. On logout I get this:

Joomla\CMS\Application\WebApplication::loadIdentity(): Argument #1 ($identity) must be of type ?Joomla\CMS\User\User, int given, called in /Users/ceford/Sites/j4test/plugins/actionlog/joomla/joomla.php on line 894

Don't know what to make of this!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33072.
avatar joomdonation
joomdonation - comment - 10 Apr 2021

Personal, I would not include the changes from long array syntax to short array syntax on this PR to avoid potential merge conflicts when merge changes from staging to 4.0-dev. When we really want to make this kind of change, there is tool to allow us to make change through our whole codebase. Also, there is error as reported by @ceford . Could you please look at it?

avatar sandewt
sandewt - comment - 14 Apr 2021

$oldVersion = JText::_('JLIB_UNKNOWN');

Should be:

$oldVersion = Text::_('JLIB_UNKNOWN');

and add:

use Joomla\CMS\Language\Text;

avatar toivo toivo - test_item - 16 Apr 2021 - Tested successfully
avatar toivo
toivo - comment - 16 Apr 2021

I have tested this item successfully on 3aae819

Tested successfully in Beta8-dev of 16 April using Wampserver 3.2.4 and PHP 8.0.2


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33072.

avatar ceford
ceford - comment - 8 May 2021

I have been doing other stuff so catching up with testing. Working through some of the actions that invoke the actions log plugin, after front end logout I got an error:

 0 Joomla\CMS\Application\WebApplication::loadIdentity(): Argument #1 ($identity) must be of type ?Joomla\CMS\User\User, int given, called in /Users/ceford/Sites/j4test/plugins/actionlog/joomla/joomla.php on line 894 

Stopped testing there. This is using PHP 8


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33072.

avatar richard67 richard67 - change - 18 May 2021
Labels Added: ?
avatar PhilETaylor
PhilETaylor - comment - 19 Aug 2021

Updated array() to [] syntax

Currently this is against the Joomla Coding Guidelines - please merge joomla/coding-standards#273 ;-)

avatar chmst
chmst - comment - 31 Jan 2022

@HLeithner could you resolve the conflict, please?

avatar HLeithner HLeithner - change - 31 Jan 2022
Labels Added: Conflicting Files ?
Removed: ?
avatar HLeithner
HLeithner - comment - 27 Jun 2022

This pull request has automatically rebased to 4.2-dev.

avatar HLeithner HLeithner - change - 1 Jul 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-07-01 08:05:18
Closed_By HLeithner
avatar HLeithner HLeithner - close - 1 Jul 2022

Add a Comment

Login with GitHub to post a comment