Skip to content

Commit 188069a

Browse files
committed
Drop php 5.6 support
1 parent fea4d9b commit 188069a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^5.6.4 || ^7.0",
19+
"php": "^7.0",
2020
"wpackagist-plugin/polylang": "^1.9"
2121
},
2222
"autoload": {
@@ -35,7 +35,7 @@
3535
},
3636
"extra":{
3737
"branch-alias": {
38-
"dev-master": "1.1-dev"
38+
"dev-master": "1.2-dev"
3939
}
4040
},
4141
"minimum-stability": "dev",

src/helpers.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* file that was distributed with this source code.
1010
*/
1111

12+
declare(strict_types=1);
13+
1214
if (!function_exists('register_translations')) {
1315
/**
1416
* Register translations.
@@ -45,7 +47,7 @@ function register_translations(array $groups, $multiline = false)
4547
*
4648
* @return string
4749
*/
48-
function trans($key, $lang = null)
50+
function trans(string $key, string $lang = null): string
4951
{
5052
if (!function_exists('pll__')) {
5153
throw new BadFunctionCallException('Please active the Polylang plugin.');

0 commit comments

Comments
 (0)