Elaborate comment on invalid keys

Change-Id: If8e800d69d4ff01ff6c9471e5324c7184e74c136
This commit is contained in:
WMDE-Fisch 2019-11-01 15:15:26 +01:00
parent c5fe31f806
commit 2ddae75d95

View file

@ -319,7 +319,9 @@ class Cite {
}
if ( $key === false ) {
# TODO: Comment this case; what does this condition mean?
# Invalid attribute in the tag like <ref no_valid_attr="foo" />
# or name and follow attribute used both in one tag checked in
# Cite::refArg that returns false for the key then.
$this->mRefCallStack[] = false;
return $this->error( 'cite_error_ref_too_many_keys' );
}
@ -438,7 +440,7 @@ class Cite {
}
if ( $argv !== [] ) {
// Invalid key
// Unexpected invalid attribute.
return [ false, false, false, false ];
}