Skip to content
Snippets Groups Projects
Commit 3e7372c2 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Fix definition availability checks in DI compiler passes

findDefinition() doesn't actually return a boolean (or null)
value on failure but throws an exception instead. As an alternative
$container->hasDefintion may be used to check for definition availability.

Also adapt the corresponding dashboard test.

Executed commands:

  Build/Scripts/runTests.sh -s phpstanGenerateBaseline

Resolves: #96703
Releases main, 11.5
Change-Id: Iab7b9ce098daf685c258f428a4aa241cb0411504
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73244


Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
parent 195e1a6d
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