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

Replace scope to retrieve plugin manager from $this to self #200

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

boesing
Copy link
Member

@boesing boesing commented Jul 2, 2023

Q A
QA yes

Description

Some parts of the CommonPluginManagerTrait do still use $this for the static method CommonPluginManagerTrait#getPluginManager

@boesing boesing added this to the 4.0.0 milestone Jul 2, 2023
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM meanwhile 👍

@@ -26,20 +26,20 @@ trait CommonPluginManagerTrait
{
public function testInstanceOfMatches(): void
{
$manager = $this->getPluginManager();
$manager = self::getPluginManager();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we perhaps drop the CommonPluginManagerTrait? :|

@Ocramius Ocramius self-assigned this Jul 3, 2023
@Ocramius Ocramius merged commit 8572186 into laminas:4.0.x Jul 3, 2023
@boesing boesing deleted the qa/replace-pluginmanager-scope branch July 3, 2023 08:26
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.

2 participants