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

IBX-4929: ChangeOwnerLimitationMapper: Fix phpDoc #685

Merged
merged 1 commit into from
Mar 31, 2023
Merged

Conversation

adriendupuis
Copy link
Contributor

@adriendupuis adriendupuis commented Jan 26, 2023

Question Answer
Tickets IBX-4929
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Fix ChangeOwnerLimitationMapper::getSelectionChoices phpDoc by removing the possibility for the key to be null.

From phpDocumentor v3.3.1: Unable to parse file "vendor/ibexa/admin-ui/src/lib/Limitation/Mapper/ChangeOwnerLimitationMapper.php", an error was detected: An array can have only integers or strings as keys

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@sonarcloud
Copy link

sonarcloud bot commented Jan 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@adriendupuis adriendupuis changed the title ChangeOwnerLimitationMapper: Fix phpDoc IBX-4929: ChangeOwnerLimitationMapper: Fix phpDoc Mar 14, 2023
@adriendupuis adriendupuis marked this pull request as ready for review March 16, 2023 09:42
Copy link
Contributor

@mikadamczyk mikadamczyk left a comment

Choose a reason for hiding this comment

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

Looks like a base branch has a different branch-alias than PR.
Pull Request: 4.4.x-dev
Base branch: 4.5.x-dev

Fix  ChangeOwnerLimitationMapper::getSelectionChoices phpDoc

Unable to parse file "vendor/ibexa/admin-ui/src/lib/Limitation/Mapper/ChangeOwnerLimitationMapper.php", an error was detected: An array can have only integers or strings as keys

When used as key, `null` is casted to an empty string.
 `ChangeOwnerLimitation::LIMITATION_VALUE_SELF` should never be `null`.
@adriendupuis
Copy link
Contributor Author

adriendupuis commented Mar 30, 2023

Looks like a base branch has a different branch-alias than PR. Pull Request: 4.4.x-dev Base branch: 4.5.x-dev

@mikadamczyk I rebased on main branch and force-pushed to solve this. Not sure it was the prettiest way to do so.

@sonarcloud
Copy link

sonarcloud bot commented Mar 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@webhdx webhdx merged commit a4442f7 into main Mar 31, 2023
@webhdx webhdx deleted the fix-phpdoc branch March 31, 2023 07:03
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.

None yet

7 participants