Skip to content

Commit

Permalink
Restore PHP 7.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed May 14, 2022
1 parent 332ef76 commit ece658b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yaml
Expand Up @@ -27,6 +27,7 @@ jobs:
strategy:
matrix:
php-version:
- '7.3'
- '7.4'
- '8.0'
- '8.1'
Expand All @@ -35,6 +36,10 @@ jobs:
symfony-require: ['']
variant: [normal]
include:
- php-version: '7.3'
dependencies: lowest
allowed-to-fail: false
variant: normal
- php-version: '7.4'
dependencies: lowest
allowed-to-fail: false
Expand Down
5 changes: 4 additions & 1 deletion src/Twig/CanonicalizeRuntime.php
Expand Up @@ -26,7 +26,10 @@ final class CanonicalizeRuntime implements RuntimeExtensionInterface
'fr' => ['fr', 'fr-ca', 'fr-ch'],
];

private RequestStack $requestStack;
/**
* @var RequestStack
*/
private $requestStack;

/**
* @internal This class should only be used through Twig
Expand Down
10 changes: 8 additions & 2 deletions tests/Twig/CanonicalizeRuntimeTest.php
Expand Up @@ -20,9 +20,15 @@

final class CanonicalizeRuntimeTest extends TestCase
{
private Request $request;
/**
* @var Request
*/
private $request;

private CanonicalizeRuntime $canonicalizeRuntime;
/**
* @var CanonicalizeRuntime
*/
private $canonicalizeRuntime;

protected function setUp(): void
{
Expand Down

0 comments on commit ece658b

Please sign in to comment.