Skip to content

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