v2.0.0 now only supports php8+, so we should make use of the language features. https://www.php.net/manual/en/language.types.declarations.php