Skip to content

Commit

Permalink
Merge tag '2.4.1'
Browse files Browse the repository at this point in the history
Bugfix release

This improves the type declaration to be compatible with
symfony translator.
Parameters may be passed as associative array or list.
  • Loading branch information
discordier committed Jan 12, 2024
2 parents ee68d05 + f99c31f commit 7eadd1c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/TranslatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of contao-community-alliance/translator.
*
* (c) 2013-2018 Contao Community Alliance.
* (c) 2013-2024 Contao Community Alliance.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -14,7 +14,8 @@
* @author Christian Schiffler <[email protected]>
* @author Tristan Lins <[email protected]>
* @author Sven Baumann <[email protected]>
* @copyright 2013-2018 Contao Community Alliance.
* @author Ingolf Steinhardt <[email protected]>
* @copyright 2013-2024 Contao Community Alliance.
* @license https://github.com/contao-community-alliance/translator/blob/master/LICENSE LGPL-3.0
* @filesource
*/
Expand All @@ -26,7 +27,7 @@
/**
* This interface describes a translator.
*
* @psalm-type TParameterArray=list<float|int|string>
* @psalm-type TParameterArray=array<string, string>|list<float|int|string>
*/
interface TranslatorInterface
{
Expand Down

0 comments on commit 7eadd1c

Please sign in to comment.