Skip to content

Commit

Permalink
Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj committed Sep 10, 2024
1 parent 27ae99f commit 5c84017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Configuration/ThemeManifestConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class ThemeManifestConfiguration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('manifest');
$treeBuilder->getRootNode()
Expand Down
4 changes: 2 additions & 2 deletions src/Configuration/YamlLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

class YamlLoader extends Loader
{
public function load($resource, $type = null)
public function load($resource, $type = null): mixed
{
return Yaml::parse(file_get_contents($resource));
}

public function supports($resource, $type = null)
public function supports($resource, $type = null): bool
{
return \is_string($resource) && \in_array(pathinfo($resource, \PATHINFO_EXTENSION), ['yaml', 'yml'], true);
}
Expand Down

0 comments on commit 5c84017

Please sign in to comment.