wiki.techinc.nl/includes/Message
Bartosz Dziewoński 9c5d5d595d Message: Improve validation for fallback keys
It's an easy mistake  to write:
  $msgSpec = [ $key, $param1, $param2 ];
  wfMessage( $msgSpec );                    // WRONG
instead of
  wfMessage( ...$msgSpec );                 // correct
  Message::newFromSpecifier( $msgSpec );    // correct

If you use the wrong form, your intended message parameters are used
as fallback message keys, and usually ignored (assuming your intended
message key exists).

It's not possible to catch this mistake in all cases, since it's all
arrays of strings most of the time. But we can try.

Change-Id: I0b40ad90a352dc640e64090cac4224219752dc01
2024-08-16 21:42:13 +00:00
..
Converter.php Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
Message.php Message: Improve validation for fallback keys 2024-08-16 21:42:13 +00:00
MessageFormatterFactory.php
TextFormatter.php
UserGroupMembershipParam.php Deprecate Message::objectParams() and related code 2024-05-28 22:03:46 +00:00