From 83c9c4b0535aec1ec09186190c8efe7334cb6ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Mon, 2 Sep 2024 12:22:15 +0200 Subject: [PATCH] Update PHP CS Fixer rules --- .php-cs-fixer.php | 1 + bundle/Core/FieldType/Birthday/Type.php | 1 + bundle/Core/FieldType/Birthday/Value.php | 1 + bundle/DependencyInjection/NetgenBirthdayExtension.php | 1 + bundle/NetgenBirthdayBundle.php | 4 +--- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 526f48a..65608b9 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -8,6 +8,7 @@ // Overrides for rules included in PhpCsFixer rule sets 'concat_space' => ['spacing' => 'one'], + 'fully_qualified_strict_types' => ['phpdoc_tags' => []], 'method_chaining_indentation' => false, 'multiline_whitespace_before_semicolons' => false, 'native_function_invocation' => ['include' => ['@all']], diff --git a/bundle/Core/FieldType/Birthday/Type.php b/bundle/Core/FieldType/Birthday/Type.php index 1b180a8..f1397f2 100644 --- a/bundle/Core/FieldType/Birthday/Type.php +++ b/bundle/Core/FieldType/Birthday/Type.php @@ -11,6 +11,7 @@ use Ibexa\Core\FieldType\FieldType; use Ibexa\Core\FieldType\ValidationError; use Ibexa\Core\FieldType\Value as BaseValue; + use function is_array; use function is_int; use function is_string; diff --git a/bundle/Core/FieldType/Birthday/Value.php b/bundle/Core/FieldType/Birthday/Value.php index 77f3bcf..b9623de 100644 --- a/bundle/Core/FieldType/Birthday/Value.php +++ b/bundle/Core/FieldType/Birthday/Value.php @@ -7,6 +7,7 @@ use DateTimeImmutable; use DateTimeInterface; use Ibexa\Core\FieldType\Value as BaseValue; + use function is_string; final class Value extends BaseValue diff --git a/bundle/DependencyInjection/NetgenBirthdayExtension.php b/bundle/DependencyInjection/NetgenBirthdayExtension.php index 86e79dc..39f6ff1 100644 --- a/bundle/DependencyInjection/NetgenBirthdayExtension.php +++ b/bundle/DependencyInjection/NetgenBirthdayExtension.php @@ -11,6 +11,7 @@ use Symfony\Component\DependencyInjection\Loader; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\Yaml\Yaml; + use function file_get_contents; final class NetgenBirthdayExtension extends Extension implements PrependExtensionInterface diff --git a/bundle/NetgenBirthdayBundle.php b/bundle/NetgenBirthdayBundle.php index 9335a2f..ad44b51 100644 --- a/bundle/NetgenBirthdayBundle.php +++ b/bundle/NetgenBirthdayBundle.php @@ -6,6 +6,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle; -final class NetgenBirthdayBundle extends Bundle -{ -} +final class NetgenBirthdayBundle extends Bundle {}