Skip to content

Commit

Permalink
Fix for Drupal 11 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Radoslav Damjanov authored and rdamjanov committed Oct 31, 2024
1 parent 94eacc6 commit 01bc9dd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"twig/twig": "^3.6"
},
"require-dev": {
"phpunit/phpunit": "^9.0"
"phpunit/phpunit": ">=9.0"
},
"scripts": {
"tests": [
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/TerrificCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Namics\Terrific\Provider\ContextProviderInterface;
use Namics\Terrific\Twig\Data\VariableNameAndArrayKeysPair;
use Namics\Terrific\Twig\Extension\TerrificExtension;
use Namics\Terrific\Twig\TwigExtension\TerrificExtension;
use Namics\Terrific\Twig\Utility\ExpressionHandler;
use Twig\Compiler;
use Twig\Error\Error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Namics\Terrific\Twig\Extension;
namespace Namics\Terrific\Twig\TwigExtension;

use Namics\Terrific\Provider\ContextProviderInterface;
use Namics\Terrific\Twig\TokenParser\ComponentTokenParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Namics\Test\Terrific\Twig\Extension;
namespace Namics\Test\Terrific\Twig\TwigExtension;

use Namics\Terrific\Twig\TokenParser\ComponentTokenParser;
use Namics\Test\Terrific\Twig\TwigTestBase;
Expand All @@ -11,7 +11,7 @@
* Class TerrificExtensionTest.
*
* @package Namics\Test\Terrific\Twig\Extension
* @coversDefaultClass \Namics\Terrific\Twig\Extension\TerrificExtension
* @coversDefaultClass \Namics\Terrific\Twig\TwigExtension\TerrificExtension
*/
class TerrificExtensionTest extends TwigTestBase {

Expand Down
4 changes: 2 additions & 2 deletions test/Twig/TwigTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Namics\Test\Terrific\Twig;

use Namics\Terrific\Provider\ContextProviderInterface;
use Namics\Terrific\Twig\Extension\TerrificExtension;
use Namics\Terrific\Twig\TwigExtension\TerrificExtension;
use Namics\Terrific\Twig\TokenParser\ComponentTokenParser;
use PHPUnit\Framework\TestCase;

Expand All @@ -29,7 +29,7 @@ protected function getContextProviderMock(): ContextProviderInterface {
/**
* Get the Terrific Twig extension.
*
* @return \Namics\Terrific\Twig\Extension\TerrificExtension
* @return \Namics\Terrific\Twig\TwigExtension\TerrificExtension
* The Terrific Twig extension.
*/
protected function getTwigExtension(): TerrificExtension {
Expand Down

0 comments on commit 01bc9dd

Please sign in to comment.