Skip to content

Commit

Permalink
[TASK] Update errorHandler property type annotation
Browse files Browse the repository at this point in the history
In RenderingContext: Property $errorHandler can be
null if setErrorHandler() has not been called.
Reflect this in the type annotation.
  • Loading branch information
lolli42 authored and s2b committed Nov 20, 2024
1 parent 336e10a commit b386601
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ parameters:
count: 1
path: src/Core/Parser/TemplateParser.php

-
message: '#^Property TYPO3Fluid\\Fluid\\Core\\Rendering\\RenderingContext\:\:\$errorHandler \(TYPO3Fluid\\Fluid\\Core\\ErrorHandler\\ErrorHandlerInterface\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: src/Core/Rendering/RenderingContext.php

-
message: '#^Strict comparison using \!\=\= between string and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Rendering/RenderingContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class RenderingContext implements RenderingContextInterface
{
/**
* @var ErrorHandlerInterface
* @var ErrorHandlerInterface|null
*/
protected $errorHandler;

Expand Down

0 comments on commit b386601

Please sign in to comment.