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

Remove unnecessary static variables #437

Merged
merged 3 commits into from
Jun 9, 2019
Merged

Remove unnecessary static variables #437

merged 3 commits into from
Jun 9, 2019

Conversation

nasyrov
Copy link
Contributor

@nasyrov nasyrov commented Jun 8, 2019

Since the autoloader is singeleton there is no reason to keep the static variables

Since the autoloader is singeleton there is no reason to keep the static variables
@austinpray
Copy link
Contributor

Haven’t tested this yet but this is a good update 👍

@swalkinshaw
Copy link
Member

Ditto 👍

@nasyrov
Copy link
Contributor Author

nasyrov commented Jun 8, 2019

@austinpray, @swalkinshaw Cheers guys!

I was also thinking, shall I update all the variable names to follow PSR2? Just to be consistent with the code.

@swalkinshaw
Copy link
Member

Yeah good catch. Might as well 😄

@nasyrov
Copy link
Contributor Author

nasyrov commented Jun 9, 2019

@swalkinshaw this is done, could you please have a look?

Copy link
Contributor

@austinpray austinpray left a comment

Choose a reason for hiding this comment

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

Tested by

"installer-paths": {
  "web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin", "roots/wp-stage-switcher"],
  "web/app/plugins/{$name}/": ["type:wordpress-plugin"],
  "web/app/themes/{$name}/": ["type:wordpress-theme"]
},

in composer.json

composer require roots/wp-stage-switcher

which nets me

image

composer remove roots/wp-stage-switcher

image

then revert the composer.json changes

composer require roots/wp-stage-switcher

image

LGTM

@swalkinshaw swalkinshaw merged commit 544e3c0 into roots:master Jun 9, 2019
@swalkinshaw
Copy link
Member

Thank you 👏

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.

None yet

3 participants