Skip to content
/ form Public

Commit 8266c81

Browse files
wouterjnicolas-grekas
authored andcommittedJul 5, 2023
[Components] Convert to native return types
1 parent 7f036f9 commit 8266c81

File tree

92 files changed

+214
-773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+214
-773
lines changed
 

‎AbstractExtension.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function getTypeGuesser(): ?FormTypeGuesserInterface
9898
*
9999
* @return FormTypeInterface[]
100100
*/
101-
protected function loadTypes()
101+
protected function loadTypes(): array
102102
{
103103
return [];
104104
}
@@ -115,10 +115,8 @@ protected function loadTypeExtensions(): array
115115

116116
/**
117117
* Registers the type guesser.
118-
*
119-
* @return FormTypeGuesserInterface|null
120118
*/
121-
protected function loadTypeGuesser()
119+
protected function loadTypeGuesser(): ?FormTypeGuesserInterface
122120
{
123121
return null;
124122
}

‎AbstractRendererEngine.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ public function __construct(array $defaultThemes = [])
6161
$this->defaultThemes = $defaultThemes;
6262
}
6363

64-
/**
65-
* @return void
66-
*/
67-
public function setTheme(FormView $view, mixed $themes, bool $useDefaultThemes = true)
64+
public function setTheme(FormView $view, mixed $themes, bool $useDefaultThemes = true): void
6865
{
6966
$cacheKey = $view->vars[self::CACHE_KEY_VAR];
7067

@@ -124,10 +121,8 @@ public function getResourceHierarchyLevel(FormView $view, array $blockNameHierar
124121
* Loads the cache with the resource for a given block name.
125122
*
126123
* @see getResourceForBlock()
127-
*
128-
* @return bool
129124
*/
130-
abstract protected function loadResourceForBlockName(string $cacheKey, FormView $view, string $blockName);
125+
abstract protected function loadResourceForBlockName(string $cacheKey, FormView $view, string $blockName): bool;
131126

132127
/**
133128
* Loads the cache with the resource for a specific level of a block hierarchy.

0 commit comments

Comments
 (0)