- Issue created by @mathilde_dumond
- ๐ฎ๐ณIndia Shreya_98
Shreya_th โ made their first commit to this issueโs fork.
- Merge request !93getTag function should allow to return strings issue fixed โ (Open) created by Unnamed author
- last update
about 1 year ago 113 pass - Status changed to Needs review
about 1 year ago 10:39am 27 September 2023 - ๐ฎ๐ณIndia Shreya_98
Hi @Dave Reid,
I have solved this issue and also created MR for this i.e. "getTag function should allow to return strings". Kindly review the changes.Thank you.
I applied the proposed patch and got the following:
TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in count() (line 98 of /home/mmex/public_html/web/modules/contrib/metatag/src/Entity/Me tatagDefaults.php).
I changed line 98 to check if $tag is of type array:
if (is_array($tag) && count($tag) === 1) { return reset($tag); }
I don't know how to create a MR.
- First commit to issue fork.
- last update
9 months ago 120 pass