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

[BUGFIX] Reflect content object renderer type from assert method #137

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

eliashaeussler
Copy link
Member

This PR improves type reflection in ContentObjectRendererAwareTrait when using $this->assertContentObjectRendererIsAvailable(). When using PHPStan >= 1.9.0 for static code analysis, $this->contentObjectRenderer is now treated as a valid instance of ContentObjectRenderer after the assertion method has been called successfully.

@eliashaeussler eliashaeussler added the bug Something isn't working label Feb 27, 2023
@eliashaeussler eliashaeussler self-assigned this Feb 27, 2023
@codeclimate
Copy link

codeclimate bot commented Feb 27, 2023

Code Climate has analyzed commit 9c5a0e2 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 99.2% (0.0% change).

View more on Code Climate.

@eliashaeussler eliashaeussler merged commit fc93b34 into develop Feb 27, 2023
@eliashaeussler eliashaeussler deleted the fix/cObj-assert branch February 27, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant