Solution:
PHP is partially case-insensitive, meaning keywords are not case-sensitive. For built-in type declarations (type hints), both string and String will work.
However, the official PHP documentation uses lowercase keywords, and it’s recommended to follow this convention for consistent and readable code — similar to using foreach instead of Foreach.