Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DomCrawler] fix missing null in phpdoc #32345

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

Closed

Conversation

Simperfit
Copy link
Contributor

Q A
Branch? 3.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT
Doc PR not needed

This add missing phpdoc highlighted in #32329 (comment)

@fabpot
Copy link
Member

fabpot commented Jul 3, 2019

fabbot is right here :)

@Simperfit Simperfit force-pushed the feature/fix-invalid-doc-blocks branch from 4c73812 to ff313e1 Compare July 3, 2019 17:48
@Simperfit
Copy link
Contributor Author

was in the train, it won't push it :( :p

* @param string $baseHref The base href value
* @param mixed|null $node A Node to use as the base for the crawling
* @param string|null $uri The current URI
* @param string|null $baseHref The base href value
Copy link
Member

Choose a reason for hiding this comment

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

I'm unsure what our CS rules are about that, but these changes feel a bit redundant… mixed can be literally anything, including null. And the other two parameters already default to null. 😕

Copy link
Member

Choose a reason for hiding this comment

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

It can be null in the sense that it's optional, so I don't see why we should change the phpdocs. Let's try to limit the changes to phpdocs to the bare minimum. We are spending too much time on that.

Copy link
Member

Choose a reason for hiding this comment

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

it also allows passing null explicitly (being optional does not mean you always accept null)

@fabpot fabpot closed this Jul 4, 2019
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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.