Skip to content

Change visibility of method assertInstanceOfApp#305

Merged
mvorisek merged 1 commit intodevelopfrom
change-visibility-assertInstanceOfApp
Dec 28, 2020
Merged

Change visibility of method assertInstanceOfApp#305
mvorisek merged 1 commit intodevelopfrom
change-visibility-assertInstanceOfApp

Conversation

@abbadon1334
Copy link
Copy Markdown
Collaborator

allow override of method.

@abbadon1334 abbadon1334 requested a review from mvorisek December 28, 2020 20:49
@PhilippGrashoff
Copy link
Copy Markdown

Like it, had some trouble with other private methods lately.

public $unique_hashes = [];

private function assertInstanceOfApp(object $app): void
protected function assertInstanceOfApp(object $app): void
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

https://3v4l.org/2qPLn :D

please try itself before

Copy link
Copy Markdown
Collaborator Author

@abbadon1334 abbadon1334 Dec 28, 2020

Choose a reason for hiding this comment

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

i need to override it in class not use it as it is, did you know what are you doing?

If i have to rewrite even traits, user can use another framework, no? I like private but not in traits, too much trouble. machine cycle have a cost.

Copy link
Copy Markdown
Member

@mvorisek mvorisek left a comment

Choose a reason for hiding this comment

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

well, makes sense that it is not possible to overwrite it easily for framework classes otherwise

@mvorisek mvorisek merged commit 8503b07 into develop Dec 28, 2020
@mvorisek mvorisek deleted the change-visibility-assertInstanceOfApp branch December 28, 2020 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants