Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/Asset/EntrypointLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getIntegrityData(): array
*
* @return void
*/
public function reset()
public function reset(): void
{
$this->returnedFiles = [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/EntrypointLookupInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ public function getCssFiles(string $entryName): array;
/**
* Resets the state of this service.
*/
public function reset();
public function reset(): void;
}
2 changes: 1 addition & 1 deletion src/Asset/TagRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function getDefaultAttributes(): array
/**
* @return void
*/
public function reset()
public function reset(): void
{
$this->renderedFiles = [
'scripts' => [],
Expand Down
2 changes: 1 addition & 1 deletion src/CacheWarmer/EntrypointCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(array $cacheKeys, string $phpArrayFile)
parent::__construct($phpArrayFile);
}

protected function doWarmUp($cacheDir, ArrayAdapter $arrayAdapter): bool
protected function doWarmUp(string $cacheDir, ArrayAdapter $arrayAdapter, ?string $buildDir = null): bool
{
foreach ($this->cacheKeys as $cacheKey => $path) {
// If the file does not exist then just skip past this entry point.
Expand Down
4 changes: 2 additions & 2 deletions src/EventListener/ResetAssetsEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(EntrypointLookupCollection $entrypointLookupCollecti
$this->buildNames = $buildNames;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
KernelEvents::FINISH_REQUEST => 'resetAssets',
Expand All @@ -37,7 +37,7 @@ public static function getSubscribedEvents()
/**
* @return void
*/
public function resetAssets(FinishRequestEvent $event)
public function resetAssets(FinishRequestEvent $event): void
{
if (!$event->isMainRequest()) {
return;
Expand Down