diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f5fcaf5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +# This keeps updated the GitHub actions used in .github/workflows/*.yaml +# See https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" \ No newline at end of file diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 6058d88..5eae089 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -1,5 +1,7 @@ ['header' => $fileHeaderComment], 'modernize_strpos' => true, 'get_class_to_class_keyword' => true, + 'declare_strict_types' => true, ]) ->setRiskyAllowed(true) ->setFinder( diff --git a/src/CleverAgeArchiveProcessBundle.php b/src/CleverAgeArchiveProcessBundle.php index 4565a72..457b27a 100644 --- a/src/CleverAgeArchiveProcessBundle.php +++ b/src/CleverAgeArchiveProcessBundle.php @@ -17,6 +17,7 @@ class CleverAgeArchiveProcessBundle extends Bundle { + #[\Override] public function getPath(): string { return \dirname(__DIR__); diff --git a/src/Task/UnzipTask.php b/src/Task/UnzipTask.php index 498eb10..b80cca7 100644 --- a/src/Task/UnzipTask.php +++ b/src/Task/UnzipTask.php @@ -65,6 +65,7 @@ protected function configureOptions(OptionsResolver $resolver): void /** * @return array{filename: string, destination: string}|null */ + #[\Override] protected function getOptions(ProcessState $state): ?array { if (null === $this->options && \is_array($state->getInput())) { diff --git a/src/Task/ZipTask.php b/src/Task/ZipTask.php index ad4ce48..cd2c7df 100644 --- a/src/Task/ZipTask.php +++ b/src/Task/ZipTask.php @@ -75,6 +75,7 @@ protected function configureOptions(OptionsResolver $resolver): void /** * @return array{filename: string, files: array|string, files_base_path: string}|null */ + #[\Override] protected function getOptions(ProcessState $state): ?array { if (null === $this->options && \is_array($state->getInput())) {