Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2] parent keyword misused #41662

Merged
merged 2 commits into from
Jul 29, 2024
Merged

Conversation

Denitz
Copy link
Contributor

@Denitz Denitz commented Sep 8, 2023

Summary of Changes

Use $this-> instead of parent:: in the non-parent methods.

Testing Instructions

Apply patch

Actual result BEFORE applying this Pull Request

See IDE warnings, plus inability to extend from certain classes with calling own methods.

Expected result AFTER applying this Pull Request

No IDE warnings, composition is better.

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

@HLeithner HLeithner changed the title 5.0 parent keyword misused [5.0] parent keyword misused Sep 12, 2023
@HLeithner
Copy link
Member

As #41661 this must be evaluated per case what we want.

@HLeithner HLeithner added Feature b/c break This item changes the behavior in an incompatible why. HEADS UP labels Sep 24, 2023
@HLeithner HLeithner changed the base branch from 5.0-dev to 5.1-dev September 30, 2023 22:49
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 5.1-dev.

@Denitz Denitz changed the title [5.0] parent keyword misused [5.1] parent keyword misused Oct 3, 2023
@rdeutz rdeutz self-assigned this Feb 21, 2024
@HLeithner HLeithner changed the base branch from 5.1-dev to 5.2-dev April 24, 2024 09:08
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 5.2-dev.

@HLeithner HLeithner changed the title [5.1] parent keyword misused [5.2] parent keyword misused Apr 24, 2024
@Hackwar
Copy link
Member

Hackwar commented Jul 24, 2024

Looking at the code, all looks correct and other than #41661 there is nothing wrong here. Could @rdeutz and @HLeithner review/test this? Then I could merge it.

@Hackwar Hackwar added RTC This Pull Request is Ready To Commit PR-5.2-dev and removed Feature b/c break This item changes the behavior in an incompatible why. HEADS UP PR-5.2-dev labels Jul 27, 2024
@Hackwar Hackwar enabled auto-merge (squash) July 29, 2024 12:00
@Hackwar Hackwar added this to the Joomla! 5.2.0 milestone Jul 29, 2024
@Hackwar
Copy link
Member

Hackwar commented Jul 29, 2024

Thank you for your contribution @Denitz!

@Hackwar Hackwar merged commit 51710f8 into joomla:5.2-dev Jul 29, 2024
3 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants