Skip to content

Commit 85bea20

Browse files
author
roadiz-ci
committed
chore: bumped
1 parent 32c8bb7 commit 85bea20

5 files changed

Lines changed: 12 additions & 16 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.3', '8.4']
22+
php-version: ['8.2', '8.3']
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 © 2025 Ambroise Maupate
3+
Copyright © 2024 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.3",
6+
"php": ">=8.2",
77
"doctrine/collections": ">=1.6",
88
"league/commonmark": "^2.2.0",
9-
"symfony/stopwatch": "7.3.*",
10-
"twig/twig": "^3.21"
9+
"symfony/stopwatch": "6.4.*",
10+
"twig/twig": "^3.16"
1111
},
1212
"require-dev": {
1313
"phpstan/phpstan": "^1.5.3",
@@ -29,8 +29,8 @@
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "2.6.x-dev",
33-
"dev-develop": "2.7.x-dev"
32+
"dev-master": "2.5.x-dev",
33+
"dev-develop": "2.6.x-dev"
3434
}
3535
}
3636
}

src/CommonMark.php

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

20-
#[\Override]
2120
public function text(?string $markdown = null): string
2221
{
2322
if (null === $markdown) {
@@ -30,7 +29,6 @@ public function text(?string $markdown = null): string
3029
return $html;
3130
}
3231

33-
#[\Override]
3432
public function textExtra(?string $markdown = null): string
3533
{
3634
if (null === $markdown) {
@@ -43,7 +41,6 @@ public function textExtra(?string $markdown = null): string
4341
return $html;
4442
}
4543

46-
#[\Override]
4744
public function line(?string $markdown = null): string
4845
{
4946
if (null === $markdown) {

src/Twig/MarkdownExtension.php

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

17-
#[\Override]
1817
public function getFilters(): array
1918
{
2019
return [
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']]),
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']]),
2625
];
2726
}
2827

0 commit comments

Comments
 (0)