Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Files and directories which won't be included in .zip archive during running `composer install --prefer-dist`

/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/.styleci.yml export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/Tests export-ignore
/Resources/docs export-ignore
/.idea export-ignore
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/.styleci.yml export-ignore
/docker-compose.yml export-ignore
/Dockerfile export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/Tests export-ignore
/Resources/docs export-ignore
9 changes: 2 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,10 @@ jobs:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'
- '8.4'
symfony-version:
- '6.4'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
steps:
- name: 'Checkout Code'
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/vendor/
.phpunit.result.cache
composer.lock
.phpcs-cache
.php-cs-fixer.cache
clover-coverage.xml

###> PhpStrom Shared Project Settings ###
.idea/*
Expand Down
14 changes: 14 additions & 0 deletions .idea/php-test-framework.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 93 additions & 1 deletion .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations/Composer_install.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations/Composer_update.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/runConfigurations/Run_CI_Pack.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/runConfigurations/Run_docker_composer.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/runConfigurations/Run_unit_tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

declare(strict_types=1);

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor/')
->exclude('public/')
->exclude('config/')
->exclude('src/')
->exclude('tests/')
->notName('composer-setup.php')
;

return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'no_unused_imports' => true,
'ordered_imports' => true,
'self_accessor' => false,
'declare_strict_types' => true,
'no_superfluous_phpdoc_tags' => false,
'no_empty_phpdoc' => false,
'modifier_keywords' => false,
'array_syntax' => [
'syntax' => 'short',
],
'phpdoc_types_order' => [
'null_adjustment' => 'always_last',
'sort_algorithm' => 'none',
],
])
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder($finder)
->setCacheFile(__DIR__.'/.php-cs-fixer.cache')
;
4 changes: 2 additions & 2 deletions .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ risky: true
preset: symfony
tab-width: 4
use-tabs: false
version: 8.1
version: 8.4
enabled:
- combine_consecutive_unsets
- ordered_class_elements
- alpha_ordered_imports
- declare_strict_types
- phpdoc_order
- symfony_phpdoc_order
disabled:
- no_superfluous_phpdoc_tags_symfony
- native_function_invocation_symfony
Expand Down
6 changes: 3 additions & 3 deletions Command/EnumDropCommentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct(private readonly ManagerRegistry $registry, array $r
foreach ($registeredTypes as $type => $details) {
$registeredEnumTypeFQCN = $details['class'];

if (!\class_exists($registeredEnumTypeFQCN)) {
if (!class_exists($registeredEnumTypeFQCN)) {
$exceptionMessage = \sprintf(
'ENUM type "%s" is registered as "%s", but that class does not exist',
$type,
Expand All @@ -68,7 +68,7 @@ public function __construct(private readonly ManagerRegistry $registry, array $r
}

// Filter only ENUM types
if (\is_subclass_of($registeredEnumTypeFQCN, AbstractEnumType::class)) {
if (is_subclass_of($registeredEnumTypeFQCN, AbstractEnumType::class)) {
$this->registeredEnumTypes[$type] = $details['class'];
}
}
Expand All @@ -80,7 +80,7 @@ public function __construct(private readonly ManagerRegistry $registry, array $r
public function getEnumTypesForAutocompletion(): \Closure
{
return function () {
return \array_keys($this->registeredEnumTypes);
return array_keys($this->registeredEnumTypes);
};
}

Expand Down
Loading