Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed missing return types for DebugTemplate #406

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
namespace eZ\Bundle\EzPublishDebugBundle\Twig;

use Symfony\Component\Filesystem\Filesystem;
use Twig\Source;
use Twig\Template;

/**
Expand All @@ -19,7 +20,7 @@ class DebugTemplate extends Template
{
private $fileSystem;

public function display(array $context, array $blocks = [])
public function display(array $context, array $blocks = []): void
{
$this->fileSystem = $this->fileSystem ?: new Filesystem();

Expand Down Expand Up @@ -65,34 +66,25 @@ public function display(array $context, array $blocks = [])
}
}

/**
* {@inheritdoc}
*/
public function getTemplateName()
public function getTemplateName(): string
{
return '';
}

/**
* {@inheritdoc}
*/
public function getSourceContext()
public function getSourceContext(): Source
{
return '';
return new Source('', '');
}

/**
* {@inheritdoc}
*/
protected function doDisplay(array $context, array $blocks = [])
protected function doDisplay(array $context, array $blocks = []): string
{
return '';
}

/**
* {@inheritdoc}
* @return array<mixed>
*/
public function getDebugInfo()
public function getDebugInfo(): array
{
return [];
}
Expand Down
Loading