FunctionDeclarations/RemovedOptionalBeforeRequiredParam: bug fix x 2 by jrfnl · Pull Request #1886 · PHPCompatibility/PHPCompatibility

@jrfnl

…low for uppercase mixed in type

Uppercase `null` was already handled correctly, but uppercase `mixed` was not.

Fixed now.

Includes tests for both.

@jrfnl

…low for FQN `null` in default value

Not commonly used, but it is valid PHP.

Note: FQN `null` in a type declaration is not allowed and therefor not accounted for.

Includes tests.

wimg

wimg approved these changes Sep 1, 2025

@wimg wimg deleted the feature/removedoptionalbeforerequiredparam-bug-fix-x-2 branch

September 1, 2025 15:43