-
Notifications
You must be signed in to change notification settings - Fork 47
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
Conversation
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@@ -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); |
There was a problem hiding this comment.
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....
There was a problem hiding this comment.
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 😉
There was a problem hiding this comment.
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
).
No description provided.