I suggest creating a component for the Assert library
Example tasks:
T226266: Create a phan plugin to handle the Assert library
T247093: Add Assert::UnreachableException
T250776: The $description in the Wikimedia\Assert methods should be callable|string
T267952: Release mediawiki/assert 0.5.1
See T91071: Introduce library for assertions for parameter validation and post-condition checking for background. Currently, there does not appear to be a common tag for these tasks that relate to the same codebase