diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 68ea79e9..429983c1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -58,7 +58,7 @@ jobs: - name: php-cs-fixer run: | - vendor/bin/php-cs-fixer fix --dry-run --diff + vendor/bin/php-cs-fixer fix --dry-run --diff --allow-risky=yes static-analysis: runs-on: ubuntu-24.04 diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index a2f9d0c6..6000a764 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -8,6 +8,7 @@ return (new PhpCsFixer\Config()) ->setRules([ '@Symfony' => true, + 'declare_strict_types' => true, 'phpdoc_annotation_without_dot' => false, 'nullable_type_declaration_for_default_null_value' => [ 'use_nullable_type_declaration' => true, diff --git a/src/Api/Api.php b/src/Api/Api.php index 8c0f6624..d66a42ee 100644 --- a/src/Api/Api.php +++ b/src/Api/Api.php @@ -1,5 +1,7 @@