Add an `attr` function to make outputting HTML attributes easier

by @mpdude

Some issues have been detected in this pull request

0
Coding Standard

0
Common Typos

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/twigphp/Twig/3930/aef2551902c1923acc0194094843b3134a6e8c66/void_in_tests.diff | patch -p0
diff -ru extra/html-extra/Tests/HtmlAttrMergeTest.php extra/html-extra/Tests/HtmlAttrMergeTest.php
--- extra/html-extra/Tests/HtmlAttrMergeTest.php	2024-10-04 05:58:16.029716271 +0000
+++ extra/html-extra/Tests/HtmlAttrMergeTest.php	2024-10-04 05:58:17.369764599 +0000
@@ -10,7 +10,7 @@
     /**
      * @dataProvider htmlAttrProvider
      */
-    public function testMerge(array $expected, array $inputs): void
+    public function testMerge(array $expected, array $inputs)
     {
         $result = HtmlExtension::htmlAttrMerge(...$inputs);
 

0
Use ::class whenever possible

0
Deprecation Messages