You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@param 'AND'|'OR' $operator is converted to 'AND'|'OR'|string by phan when comparing to method PHPdoc definition which also says `@param 'AND'|'OR' but is not converted.
PhanParamSignaturePHPDocMismatchParamType Declaration of real/@method function is_active(mixed|string $value = 1, bool $partialMatch = false, 'AND'|'OR' $operator = 'AND', bool $escape = true) should be compatible with real/@method function is_active($value = '>=1', $partialMatch = false, $operator = 'AND', $escape = true) (parameter #3 of type ''AND'|'OR'' cannot replace original parameter of type ''AND'|'OR'|string') defined in tests\testconststroverride.txt:15
Phan 5.4.2
php-ast version 1.0.16
PHP version used to run Phan: 8.1.13
The text was updated successfully, but these errors were encountered:
mdeweerd
changed the title
@param 'AND'|'OR' interpreted as 'AND'|'OR'|string, but 'AND'|'OR' when in @method definition.@param 'AND'|'OR' interpreted as 'AND'|'OR'|string, but 'AND'|'OR' when in @method definition.
Feb 5, 2024
mdeweerd
changed the title
@param 'AND'|'OR' interpreted as 'AND'|'OR'|string, but 'AND'|'OR' when in @method definition.@param 'AND'|'OR' interpreted as 'AND'|'OR'|string, but 'AND'|'OR' when in @method definition.
Feb 5, 2024
@param 'AND'|'OR' $operator
is converted to'AND'|'OR'|string
by phan when comparing to method PHPdoc definition which also says `@param 'AND'|'OR' but is not converted.I'ld prefer to compare and test to 'AND'|'OR'
The text was updated successfully, but these errors were encountered: