Skip to content

Commit 5031cc7

Browse files
author
roadiz-ci
committed
Merge branch hotfix/v2.6.9
1 parent 38665fc commit 5031cc7

5 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/run-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
php-version: ['8.2', '8.3']
22+
php-version: ['8.3', '8.4']
2323
steps:
2424
- uses: shivammathur/setup-php@v2
2525
with:

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © 2024 Ambroise Maupate
3+
Copyright © 2025 Ambroise Maupate
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"description": "Markdown services and Twig extension for Roadiz",
44
"type": "library",
55
"require": {
6-
"php": ">=8.2",
6+
"php": ">=8.3",
77
"doctrine/collections": ">=1.6",
88
"league/commonmark": "^2.2.0",
9-
"symfony/stopwatch": "6.4.*",
10-
"twig/twig": "^3.16"
9+
"symfony/stopwatch": "7.3.*",
10+
"twig/twig": "^3.21"
1111
},
1212
"require-dev": {
1313
"phpstan/phpstan": "^1.5.3",
@@ -29,8 +29,8 @@
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "2.5.x-dev",
33-
"dev-develop": "2.6.x-dev"
32+
"dev-master": "2.6.x-dev",
33+
"dev-develop": "2.7.x-dev"
3434
}
3535
}
3636
}

src/CommonMark.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public function __construct(
1717
) {
1818
}
1919

20+
#[\Override]
2021
public function text(?string $markdown = null): string
2122
{
2223
if (null === $markdown) {
@@ -29,6 +30,7 @@ public function text(?string $markdown = null): string
2930
return $html;
3031
}
3132

33+
#[\Override]
3234
public function textExtra(?string $markdown = null): string
3335
{
3436
if (null === $markdown) {
@@ -41,6 +43,7 @@ public function textExtra(?string $markdown = null): string
4143
return $html;
4244
}
4345

46+
#[\Override]
4447
public function line(?string $markdown = null): string
4548
{
4649
if (null === $markdown) {

src/Twig/MarkdownExtension.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ public function __construct(private readonly MarkdownInterface $markdown)
1414
{
1515
}
1616

17+
#[\Override]
1718
public function getFilters(): array
1819
{
1920
return [
20-
new TwigFilter('markdown', [$this, 'markdown'], ['is_safe' => ['html']]),
21-
new TwigFilter('inlineMarkdown', [$this, 'inlineMarkdown'], ['is_safe' => ['html']]),
22-
new TwigFilter('inline_markdown', [$this, 'inlineMarkdown'], ['is_safe' => ['html']]),
23-
new TwigFilter('markdownExtra', [$this, 'markdownExtra'], ['is_safe' => ['html']]),
24-
new TwigFilter('markdown_extra', [$this, 'markdownExtra'], ['is_safe' => ['html']]),
21+
new TwigFilter('markdown', $this->markdown(...), ['is_safe' => ['html']]),
22+
new TwigFilter('inlineMarkdown', $this->inlineMarkdown(...), ['is_safe' => ['html']]),
23+
new TwigFilter('inline_markdown', $this->inlineMarkdown(...), ['is_safe' => ['html']]),
24+
new TwigFilter('markdownExtra', $this->markdownExtra(...), ['is_safe' => ['html']]),
25+
new TwigFilter('markdown_extra', $this->markdownExtra(...), ['is_safe' => ['html']]),
2526
];
2627
}
2728

0 commit comments

Comments
 (0)