Skip to content

Commit 6403884

Browse files
committed
Merged branch '1.3' of ezsystems/ezplatform-kernel into 4.6
2 parents f1ce2b2 + 81464c6 commit 6403884

File tree

2 files changed

+8
-36
lines changed

2 files changed

+8
-36
lines changed

phpstan-baseline.neon

-20
Original file line numberDiff line numberDiff line change
@@ -4155,11 +4155,6 @@ parameters:
41554155
count: 1
41564156
path: src/bundle/Debug/IbexaDebugBundle.php
41574157

4158-
-
4159-
message: "#^Method Ibexa\\\\Bundle\\\\Debug\\\\Twig\\\\DebugTemplate\\:\\:display\\(\\) has no return type specified\\.$#"
4160-
count: 1
4161-
path: src/bundle/Debug/Twig/DebugTemplate.php
4162-
41634158
-
41644159
message: "#^Method Ibexa\\\\Bundle\\\\Debug\\\\Twig\\\\DebugTemplate\\:\\:display\\(\\) has parameter \\$blocks with no value type specified in iterable type array\\.$#"
41654160
count: 1
@@ -4170,11 +4165,6 @@ parameters:
41704165
count: 1
41714166
path: src/bundle/Debug/Twig/DebugTemplate.php
41724167

4173-
-
4174-
message: "#^Method Ibexa\\\\Bundle\\\\Debug\\\\Twig\\\\DebugTemplate\\:\\:doDisplay\\(\\) has no return type specified\\.$#"
4175-
count: 1
4176-
path: src/bundle/Debug/Twig/DebugTemplate.php
4177-
41784168
-
41794169
message: "#^Method Ibexa\\\\Bundle\\\\Debug\\\\Twig\\\\DebugTemplate\\:\\:doDisplay\\(\\) has parameter \\$blocks with no value type specified in iterable type array\\.$#"
41804170
count: 1
@@ -4185,16 +4175,6 @@ parameters:
41854175
count: 1
41864176
path: src/bundle/Debug/Twig/DebugTemplate.php
41874177

4188-
-
4189-
message: "#^Method Ibexa\\\\Bundle\\\\Debug\\\\Twig\\\\DebugTemplate\\:\\:getDebugInfo\\(\\) return type has no value type specified in iterable type array\\.$#"
4190-
count: 1
4191-
path: src/bundle/Debug/Twig/DebugTemplate.php
4192-
4193-
-
4194-
message: "#^Method Ibexa\\\\Bundle\\\\Debug\\\\Twig\\\\DebugTemplate\\:\\:getSourceContext\\(\\) should return Twig\\\\Source but returns string\\.$#"
4195-
count: 1
4196-
path: src/bundle/Debug/Twig/DebugTemplate.php
4197-
41984178
-
41994179
message: "#^Parameter \\#1 \\$haystack of function stripos expects string, string\\|false\\|null given\\.$#"
42004180
count: 1

src/bundle/Debug/Twig/DebugTemplate.php

+8-16
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace Ibexa\Bundle\Debug\Twig;
88

99
use Symfony\Component\Filesystem\Filesystem;
10+
use Twig\Source;
1011
use Twig\Template;
1112

1213
/**
@@ -19,7 +20,7 @@ class DebugTemplate extends Template
1920
{
2021
private $fileSystem;
2122

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

@@ -65,34 +66,25 @@ public function display(array $context, array $blocks = [])
6566
}
6667
}
6768

68-
/**
69-
* {@inheritdoc}
70-
*/
71-
public function getTemplateName()
69+
public function getTemplateName(): string
7270
{
7371
return '';
7472
}
7573

76-
/**
77-
* {@inheritdoc}
78-
*/
79-
public function getSourceContext()
74+
public function getSourceContext(): Source
8075
{
81-
return '';
76+
return new Source('', '');
8277
}
8378

84-
/**
85-
* {@inheritdoc}
86-
*/
87-
protected function doDisplay(array $context, array $blocks = [])
79+
protected function doDisplay(array $context, array $blocks = []): string
8880
{
8981
return '';
9082
}
9183

9284
/**
93-
* {@inheritdoc}
85+
* @return array<mixed>
9486
*/
95-
public function getDebugInfo()
87+
public function getDebugInfo(): array
9688
{
9789
return [];
9890
}

0 commit comments

Comments
 (0)