Skip to content

Commit eaef07d

Browse files
1.1.0
1 parent c7b2087 commit eaef07d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/flag"
3-
,"version": "1.0.5"
3+
,"version": "1.1.0"
44
,"description": "A Magento 2 interface to the lipis/flag-icon-css library."
55
,"type": "magento2-module"
66
,"homepage": "https://mage2.pro"
@@ -11,7 +11,7 @@
1111
"homepage": "https://www.upwork.com/fl/mage2pro",
1212
"role": "Developer"
1313
}]
14-
,"require": {"mage2pro/core": ">=2.6.19"}
14+
,"require": {"mage2pro/core": ">=9.0.4"}
1515
,"autoload": {"files": ["registration.php"], "psr-4": {"Df\\Flag\\": ""}}
1616
,"keywords": [
1717
"Country flag"

lib/main.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ function df_flag_link():string {return df_link_inline(df_asset_name(null, 'Df_Fl
1414
* @used-by https://github.com/inkifi/store/blob/0.0.3/view/frontend/templates/switcher.phtml#L19
1515
* @used-by https://github.com/inkifi/store/blob/0.0.3/view/frontend/templates/switcher.phtml#L29
1616
* @used-by https://github.com/mage2pro/portal-stripe/blob/0.5.6/view/frontend/templates/page/customers.phtml#L29
17-
* @param string $iso2
18-
* @param string $content [optional]
19-
* @param string $tag [optional]
2017
*/
21-
function df_flag_tag($iso2, $content = null, $tag = 'span'):string {return df_tag(
18+
function df_flag_tag(string $iso2, string $content = '', string $tag = 'span'):string {return df_tag(
2219
$tag, 'flag-icon flag-icon-' . strtolower('uk' === $iso2 ? 'gb' : $iso2), $content
2320
);}

0 commit comments

Comments
 (0)