"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/I18n/Formatter/SprintfFormatter.php" between
cakephp-4.2.2.tar.gz and cakephp-4.2.3.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

SprintfFormatter.php  (cakephp-4.2.2):SprintfFormatter.php  (cakephp-4.2.3)
skipping to change at line 38 skipping to change at line 38
* Returns a string with all passed variables interpolated into the original * Returns a string with all passed variables interpolated into the original
* message. Variables are interpolated using the sprintf format. * message. Variables are interpolated using the sprintf format.
* *
* @param string $locale The locale in which the message is presented. * @param string $locale The locale in which the message is presented.
* @param string $message The message to be translated * @param string $message The message to be translated
* @param array $tokenValues The list of values to interpolate in the messag e * @param array $tokenValues The list of values to interpolate in the messag e
* @return string The formatted message * @return string The formatted message
*/ */
public function format(string $locale, string $message, array $tokenValues): string public function format(string $locale, string $message, array $tokenValues): string
{ {
unset($tokenValues['_singular']);
return vsprintf($message, $tokenValues); return vsprintf($message, $tokenValues);
} }
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)