Skip to content

Commit

Permalink
[BUGFIX] Adapt phpstan annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Dec 6, 2022
1 parent b1e50ad commit 744c0c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Service/CompileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public function getCompiledFile(string $file): ?string
&& is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/bootstrap-package/css']['parser'])
) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/bootstrap-package/css']['parser'] as $className) {
/** @var class-string<ParserInterface> $className */
$parser = GeneralUtility::makeInstance($className);
if ($parser instanceof ParserInterface
&& isset($settings['file']['info']['extension'])
Expand Down
1 change: 1 addition & 0 deletions Classes/Service/IconService.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function getIconProviders(): array
&& is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/bootstrap-package/icons']['provider'])
) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/bootstrap-package/icons']['provider'] as $className) {
/** @var class-string<IconProviderInterface> $className */
$iconProviders[] = GeneralUtility::makeInstance($className);
}
}
Expand Down

0 comments on commit 744c0c4

Please sign in to comment.