Skip to content
Snippets Groups Projects
Unverified Commit e25b3d08 authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch Committed by Mateu Aguiló Bosch
Browse files

Issue #3317320 by e0ipso: Unable to install in Drupal 10

parent 4d81a64e
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,5 @@ description: Drupal module that allows to declare, discover, and render self-con
type: module
dependencies:
- drupal:serialization
core: 8.x
core_version_requirement: ^8 || ^9 || ^10
core_version_requirement: ^10
configure: sdc.settings
......@@ -166,7 +166,7 @@ class TwigComponentLoader implements LoaderInterface {
/**
* {@inheritdoc}
*/
public function isFresh($name, $time) {
public function isFresh(string $name, int $time): bool {
$file_is_fresh = static fn(string $path) => filemtime($path) < $time;
try {
$component = $this->parseIdAndLoadComponent($name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment