| 1 | <?php |
||
| 7 | class SwitchLocaleController extends AbstractActionController |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * |
||
| 11 | * @var ServiceManager |
||
| 12 | */ |
||
| 13 | protected $serviceLocator; |
||
| 14 | |||
| 15 | public function __construct(ServiceLocatorInterface $locator) |
||
| 19 | |||
| 20 | public function getServiceLocator() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * switchAction : permet de switcher de langue en fonction d'un context (back/front) |
||
| 28 | * locale : locale pour switch |
||
| 29 | * context : (back/front) |
||
| 30 | * referer : retour à la page |
||
| 31 | * |
||
| 32 | * @return Redirect $redirect redirect to referer |
||
| 33 | */ |
||
| 34 | public function switchAction() |
||
| 45 | } |
||
| 46 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..