Skip to content
Snippets Groups Projects
Commit 57f36963 authored by Oliver Klee's avatar Oliver Klee Committed by Christian Kuhn
Browse files

[TASK] Ignore PHPStan errors in GeneralUtilityTest for contract violations

In tests for `GeneralUtility` that explicitly violate the contract
(and test the correct error handling in those cases), PHPStan errors about
the contract violation are not helpful and rather clutter the
PHPStan baseline.

So these errors are now silenced with an annotation in the corresponding
tests, allowing us to focus on PHPStan errors about actual issues.

Note: We only use this annotation in tests, not in production code,
to avoid silencing errors about actual problems.

Resolves: #97574
Releases: main, 11.5
Change-Id: I2586dd77a4e3f9d801e24af68ab29984ad8d02c5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74551


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 8087bf5b
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment