-
Notifications
You must be signed in to change notification settings - Fork 14
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-6312: Fixed ParentContentType View Matcher for not available parent #438
Merged
alongosz
merged 10 commits into
4.6
from
ibx-6312_view_matcher_ParentContentType_when_parent_is_not_available_4.6
Nov 28, 2024
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a8bc11e
IBX-6312: View matcher ParentContentType should not throw execption i…
vidarl 028145d
Refactored previewAction controller to improve error response (#404)
alongosz 0a845b2
fixup! Refactored previewAction controller to improve error response …
vidarl fbdfcc2
Added PHPStan errors to the baseline
vidarl f4056c3
Apply suggestions from code review
vidarl b859f6f
fixup! IBX-6312: View matcher ParentContentType should not throw exec…
vidarl 6efb30e
Revert "Added PHPStan errors to the baseline"
vidarl ad68fc7
Added error in PreviewController to to phpstan.neon.dist
vidarl 025414d
fixup! Added error in PreviewController to to phpstan.neon.dist
vidarl e20a743
Apply suggestions from code review
vidarl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an issue that needs to be resolved, not added to the baseline, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alongosz : Adam said I could solve it this way : #438 (comment)
How to do you want it fixed then ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vidarl ok, but then see #438 (comment) about how to handle expected "unresolvable" issues. Baseline is sort of "todo" list. On main we could tackle it with
?->
operator. Here we would need to useif
or||
, so that might become unreadable indeed.btw. for that reason I'm not a huge fan of traits, especially that one coming from PSR. They're meant to be very flexible which leads to such trivial issues.
But the solution could be as Steve described in the mentioned comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I had missed @Steveb-p comment in #438 (comment)
Moved error to phpstan.neon.dist in ad68fc7
Better ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost 🙃
See: #438 (review)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alongosz and now? ref 025414d