Skip to content

[Filesystem] Update filesystem.rst #16531

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

Merged
merged 1 commit into from
Feb 21, 2022
Merged

Conversation

issamkhadiri1989
Copy link
Contributor

Hello,

According to the getLongestCommonBasePath signature, the method accepts a variadic string parameter $paths and not an array. It means when calling the Path::getLongestCommonBasePath with an array, a TypeError occurs.
I think even the PHPDoc of the Path::getLongestCommonBasePath should be updated too as it is mentionned that it can accept an array argument.

@carsonbot carsonbot changed the title Update filesystem.rst [Filesystem] Update filesystem.rst Feb 21, 2022
@javiereguiluz javiereguiluz added this to the 5.4 milestone Feb 21, 2022
Hello, 

According to the `getLongestCommonBasePath` signature, the method accepts a variadic string parameter $paths and not an array. It means when calling the `Path::getLongestCommonBasePath` with an array, a `TypeError` occurs. 
I think even the PHPDoc of the `Path::getLongestCommonBasePath` should be updated too as it is mentionned that it can accept an array argument.
@javiereguiluz
Copy link
Member

Good catch, thanks Issam.

@javiereguiluz javiereguiluz merged commit ac29914 into symfony:5.4 Feb 21, 2022
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Feb 21, 2022
…reguiluz)

This PR was merged into the 5.4 branch.

Discussion
----------

[Filesystem] Update some PHPDoc of the Path class

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Originally discovered by `@issamkhadiri1989` in the Symfony Docs PR symfony/symfony-docs#16531

Commits
-------

d27eab5 [Filesystem] Update some PHPDoc of the Path class
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.

3 participants