Skip to content

Fixes notice about creating dynamic property currentUpdate on extension adapter#41324

Closed
roland-d wants to merge 1 commit intojoomla:5.0-devfrom
roland-d:feature/fix-deprecation-notice-joomla-update-page
Closed

Fixes notice about creating dynamic property currentUpdate on extension adapter#41324
roland-d wants to merge 1 commit intojoomla:5.0-devfrom
roland-d:feature/fix-deprecation-notice-joomla-update-page

Conversation

@roland-d
Copy link
Contributor

@roland-d roland-d commented Aug 6, 2023

Summary of Changes

Add property currentUpdate so it is not dynamically created.

Testing Instructions

  1. Make sure you run PHP 8.2
  2. Go to the System => Joomla Update
  3. Notice the deprecation notice:
    Deprecated: Creation of dynamic property Joomla\CMS\Updater\Adapter\ExtensionAdapter::$currentUpdate is deprecated in /var/www/html/joomla5.test/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 57
  4. Apply patch
  5. Refresh page
  6. Notice is gone

Actual result BEFORE applying this Pull Request

A notice is shown:

Deprecated: Creation of dynamic property Joomla\CMS\Updater\Adapter\ExtensionAdapter::$currentUpdate is deprecated in /var/www/html/joomla5.test/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 57

Expected result AFTER applying this Pull Request

Notice is gone.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
@alikon
Copy link
Contributor

alikon commented Aug 6, 2023

i've found some more on #41118

@roland-d
Copy link
Contributor Author

roland-d commented Aug 6, 2023

@alikon I searched but did not find your PR. Closing this in favor of #41118

@roland-d roland-d closed this Aug 6, 2023
@roland-d roland-d deleted the feature/fix-deprecation-notice-joomla-update-page branch August 6, 2023 09:22
@alikon
Copy link
Contributor

alikon commented Aug 6, 2023

@roland-d would you like to help me with declarations docs ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants