mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 04:46:49 +00:00
Make extra integration tests compatible with Twig 4
This commit is contained in:
@@ -19,14 +19,14 @@ use Twig\Test\IntegrationTestCase;
|
||||
|
||||
class IntegrationTest extends IntegrationTestCase
|
||||
{
|
||||
public function getExtensions()
|
||||
public function getExtensions(): array
|
||||
{
|
||||
return [
|
||||
new CacheExtension(),
|
||||
];
|
||||
}
|
||||
|
||||
protected function getRuntimeLoaders()
|
||||
protected function getRuntimeLoaders(): array
|
||||
{
|
||||
return [
|
||||
new class implements RuntimeLoaderInterface {
|
||||
|
||||
@@ -16,7 +16,7 @@ use Twig\Test\IntegrationTestCase;
|
||||
|
||||
class IntegrationTest extends IntegrationTestCase
|
||||
{
|
||||
public function getExtensions()
|
||||
public function getExtensions(): array
|
||||
{
|
||||
return [
|
||||
new CssInlinerExtension(),
|
||||
|
||||
@@ -16,7 +16,7 @@ use Twig\Test\IntegrationTestCase;
|
||||
|
||||
class IntegrationTest extends IntegrationTestCase
|
||||
{
|
||||
public function getExtensions()
|
||||
public function getExtensions(): array
|
||||
{
|
||||
return [
|
||||
new HtmlExtension(),
|
||||
|
||||
@@ -16,7 +16,7 @@ use Twig\Test\IntegrationTestCase;
|
||||
|
||||
class IntegrationTest extends IntegrationTestCase
|
||||
{
|
||||
public function getExtensions()
|
||||
public function getExtensions(): array
|
||||
{
|
||||
return [
|
||||
new InkyExtension(),
|
||||
|
||||
@@ -16,7 +16,7 @@ use Twig\Test\IntegrationTestCase;
|
||||
|
||||
class IntegrationTest extends IntegrationTestCase
|
||||
{
|
||||
public function getExtensions()
|
||||
public function getExtensions(): array
|
||||
{
|
||||
return [
|
||||
new IntlExtension(),
|
||||
|
||||
@@ -16,7 +16,7 @@ use Twig\Test\IntegrationTestCase;
|
||||
|
||||
class IntegrationTest extends IntegrationTestCase
|
||||
{
|
||||
public function getExtensions()
|
||||
public function getExtensions(): array
|
||||
{
|
||||
return [
|
||||
new MarkdownExtension(),
|
||||
|
||||
@@ -16,7 +16,7 @@ use Twig\Test\IntegrationTestCase;
|
||||
|
||||
class IntegrationTest extends IntegrationTestCase
|
||||
{
|
||||
public function getExtensions()
|
||||
public function getExtensions(): array
|
||||
{
|
||||
return [
|
||||
new StringExtension(),
|
||||
|
||||
Reference in New Issue
Block a user