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

Interface's methods should not return concrete class #23

Open
wants to merge 1 commit into
base: 2.13.x
Choose a base branch
from

Conversation

FrantzUml
Copy link

Changed the return type to 'static' for PhpDocs.
A minima 'UriInterface' if you do not want static

Changed the return type to 'static' for PhpDocs.
A minima 'UriInterface' if you do not want static

Signed-off-by: FrantzUml <[email protected]>
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.

From my PoV, this is valid.

WDYT, @froschdesign?

@froschdesign
Copy link
Member

Makes sense to me. But the concrete implementation of this component must also be modified:

laminas-uri/src/Uri.php

Lines 37 to 40 in 95a41a7

/**
* Generic URI handler
*/
class Uri implements UriInterface

@alexmerlin
Copy link
Member

@FrantzUml any update on this?

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