diff --git a/src/YamlLoader.php b/src/YamlLoader.php index 2a1e496..45ee73a 100644 --- a/src/YamlLoader.php +++ b/src/YamlLoader.php @@ -38,9 +38,9 @@ public function loadResource($resource) public function supports($resource, $type = null) { - return is_string($resource) && 'yml' === pathinfo( + return is_string($resource) && in_array(pathinfo( $resource, PATHINFO_EXTENSION - ); + ), ['yaml', 'yml'], true); } } \ No newline at end of file