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
4 changes: 2 additions & 2 deletions .github/workflows/static-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
dependencies:
- "locked"
php-version:
- "7.4"
- "8.1"
operating-system:
- "ubuntu-latest"

Expand Down Expand Up @@ -56,4 +56,4 @@ jobs:
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Static Analyze"
run: "composer static:analyze"
run: "composer static:analyze"
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
- "lowest"
- "highest"
php-version:
- "7.4"
- "8.1"
- "8.2"
- "8.3"
operating-system:
- "ubuntu-latest"
- "windows-latest"
Expand Down Expand Up @@ -59,4 +61,4 @@ jobs:
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Tests"
run: "composer test"
run: "composer test"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/build
/vendor
/var
/var
12 changes: 6 additions & 6 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
\mkdir(__DIR__ . '/var');
}

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setCacheFile(__DIR__.'/var/.php_cs.cache')
->setRules([
'@PSR2' => true,
'psr4' => true,
'psr_autoloading' => true,
'strict_param' => true,
'ordered_imports' => true,
'blank_line_before_statement' => true,
'trailing_comma_in_multiline_array' => true,
'return_type_declaration' => ['space_before' => 'one'],
'class_attributes_separation' => ['elements' => ['const', 'property', 'method']],
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
'return_type_declaration' => ['space_before' => 'none'],
'class_attributes_separation' => ['elements' => ['const' => 'one', 'property' => 'one', 'method' => 'one']],
'no_unused_imports' => true,
'declare_strict_types' => true,
'blank_line_after_opening_tag' => true
])
->setFinder($finder);
->setFinder($finder);
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
"keywords": ["ace", "code", "editor", "symfony", "form", "bundle", "javascript"],
"license": "MIT",
"require": {
"php": ">=7.3",
"twig/twig": "^1.34|^2.0|^3.0",
"symfony/framework-bundle": "^3.0|^4.0|^5.0",
"symfony/form": "^3.0|^4.0|^5.0",
"symfony/twig-bridge": "^3.0|^4.0|^5.0",
"symfony/asset": "^3.0|^4.0|^5.0",
"symfony/expression-language": "^3.0|^4.0|^5.0"
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"twig/twig": "^2.0|^3.0",
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
"symfony/form": "^5.4|^6.0",
"symfony/twig-bridge": "^5.4|^6.0",
"symfony/asset": "^5.4|^6.0",
"symfony/expression-language": "^5.4|^6.0"
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"friendsofphp/php-cs-fixer": "^3.16",
"phpunit/phpunit": "^9.2"
},
"autoload": {
Expand Down
Loading