Skip to content

Commit 8d8bf63

Browse files
committed
Fix CS
1 parent fb2fcfc commit 8d8bf63

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

HtmlExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class HtmlExtension extends AbstractExtension
2121
{
2222
private $mimeTypes;
2323

24-
public function __construct(MimeTypes $mimeTypes = null)
24+
public function __construct(?MimeTypes $mimeTypes = null)
2525
{
2626
$this->mimeTypes = $mimeTypes;
2727
}
@@ -50,7 +50,7 @@ public function getFunctions(): array
5050
*
5151
* @internal
5252
*/
53-
public function dataUri(string $data, string $mime = null, array $parameters = []): string
53+
public function dataUri(string $data, ?string $mime = null, array $parameters = []): string
5454
{
5555
$repr = 'data:';
5656

Tests/LegacyFunctionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ class LegacyFunctionsTest extends TestCase
2121
{
2222
public function testHtmlToMarkdown()
2323
{
24-
$this->assertSame(HtmlExtension::htmlClasses(['charset' => 'utf-8']), \twig_html_classes(['charset' => 'utf-8']));
24+
$this->assertSame(HtmlExtension::htmlClasses(['charset' => 'utf-8']), twig_html_classes(['charset' => 'utf-8']));
2525
}
2626
}

0 commit comments

Comments
 (0)