Skip to content

Commit

Permalink
Merge branch '4.1.x'
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
  • Loading branch information
MauricioFauth committed Oct 8, 2024
2 parents c600af9 + 259453b commit e3998e6
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 16 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ phpunit.xml
vendor/
build/
composer.lock
.phpunit.result.cache
phpcs.xml
.phpcs-cache
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
* Drop support for Twig < 3.9.0
* Drop support for PHP 7.2, PHP 7.3, PHP 7.4 and PHP 8.0

## [4.1.3] - 2024-09-08

* Add support for Twig 3.13 (#15)

## [4.1.2] - 2024-08-31

* Add support for Twig 3.12 (#14)

## [4.1.1] - 2024-04-19

* Add support for Twig 3.9 (#12)
Expand Down Expand Up @@ -44,7 +52,9 @@

* First release of this library.

[Unreleased]: https://github.com/phpmyadmin/twig-i18n-extension/compare/4.1.1...HEAD
[Unreleased]: https://github.com/phpmyadmin/twig-i18n-extension/compare/4.1.x...HEAD
[4.1.3]: https://github.com/phpmyadmin/twig-i18n-extension/compare/4.1.2...4.1.3
[4.1.2]: https://github.com/phpmyadmin/twig-i18n-extension/compare/4.1.1...4.1.2
[4.1.1]: https://github.com/phpmyadmin/twig-i18n-extension/compare/4.1.0...4.1.1
[4.1.0]: https://github.com/phpmyadmin/twig-i18n-extension/compare/v4.0.1...4.1.0
[4.0.1]: https://github.com/phpmyadmin/twig-i18n-extension/compare/v4.0.0...v4.0.1
Expand Down
26 changes: 12 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
>
cacheResultFile="build/.phpunit.cache/test-results"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
convertDeprecationsToExceptions="true"
colors="true"
verbose="true">
<testsuites>
<testsuite name="Twig Extensions Test Suite">
<directory>./test/</directory>
<testsuite name="default">
<directory>test</directory>
</testsuite>
</testsuites>

Expand All @@ -21,8 +19,8 @@
</logging>

<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>
8 changes: 8 additions & 0 deletions src/Node/TransNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

use Twig\Attribute\YieldReady;
use Twig\Compiler;
use Twig\Environment;
use Twig\Node\CheckToStringNode;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Expression\ConstantExpression;
Expand Down Expand Up @@ -91,6 +92,13 @@ public function __construct(
$nodes['context'] = $context;
}

/** @phpstan-ignore-next-line */
if (Environment::MAJOR_VERSION >= 3 && Environment::MINOR_VERSION >= 12) {
parent::__construct($nodes, [], $lineno);

return;
}

parent::__construct($nodes, [], $lineno, $tag);
}

Expand Down

0 comments on commit e3998e6

Please sign in to comment.