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

Fix hinting to public class #39

Merged
merged 2 commits into from
Aug 8, 2017
Merged

Fix hinting to public class #39

merged 2 commits into from
Aug 8, 2017

Conversation

MorrisJobke
Copy link
Member

No description provided.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke
Copy link
Member Author

See nextcloud/server#4256

@@ -63,7 +64,8 @@ public function disable() {
* @return TemplateResponse
*/
public function show() {
$theming = \OC::$server->getThemingDefaults();
/** @var Defaults $theming */
$theming = \OC::$server->query(Defaults::class);
Copy link
Member

Choose a reason for hiding this comment

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

I don't really get why we need to change this. I would like to avoid this. Because it basically means the API changed....

Copy link
Member

Choose a reason for hiding this comment

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

No it does not. Because getThemingDefaults was never in OCP 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

This is basically only using the proper public interface instead of a private one from an app. (either returned OCA\Theming\ThemingDefaults or OC_Defaults).

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.

4 participants