Skip to content

Commit

Permalink
Updates + final classes + fix incompatibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
a-menshchikov committed Jun 12, 2024
1 parent d69b36e commit 4c86160
Show file tree
Hide file tree
Showing 99 changed files with 2,128 additions and 1,996 deletions.
11 changes: 10 additions & 1 deletion shared/homeless/.php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@
(new PhpCsFixer\Finder())
->in(__DIR__)
->exclude(['bin', 'migrations', 'var'])
->notPath([
'src/EventListener/PrePersister.php',
'src/EventListener/PreUpdater.php',
'src/Kernel.php',
])
->append([__FILE__])
)
->setRiskyAllowed(true)
->setRules([
// base presets
'@PER' => true,
'@PER-CS' => true,
'@PhpCsFixer' => true,
'@Symfony' => true,
'@PHP82Migration' => true,

// risky presets
'@PER-CS:risky' => true,
'@PhpCsFixer:risky' => true,
'@Symfony:risky' => true,
'@PHP80Migration:risky' => true,
Expand Down Expand Up @@ -82,14 +88,17 @@

// no-preset rules
'date_time_immutable' => true,
'final_class' => true,
'header_comment' => [
'header' => 'SPDX-License-Identifier: BSD-3-Clause',
'location' => 'after_open',
'separate' => 'bottom',
],
'nullable_type_declaration_for_default_null_value' => true,
'php_unit_attributes' => true,
'self_static_accessor' => true,
'simplified_null_return' => true,
'single_line_empty_body' => true,
'static_lambda' => true,
])
;
4 changes: 2 additions & 2 deletions shared/homeless/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"doctrine/doctrine-bundle": "^2.0",
"doctrine/doctrine-migrations-bundle": "^3.0",
"doctrine/migrations": "^3.0",
"doctrine/orm": "^2.5",
"doctrine/orm": "^3.2.0",
"friendsofsymfony/rest-bundle": "^3.0",
"h4cc/wkhtmltopdf-amd64": "^0.12.3",
"incenteev/composer-parameter-handler": "^2.1",
Expand Down Expand Up @@ -42,7 +42,7 @@
"symfony/templating": "~6.4.0",
"symfony/twig-bundle": "~6.4.0",
"symfony/web-link": "~6.4.0",
"symfony/webpack-encore-bundle": "^v2.0.1",
"symfony/webpack-encore-bundle": "^2.0.1",
"twbs/bootstrap-sass": "^3.3",
"twig/extra-bundle": "^3.5",
"twig/intl-extra": "^3.5",
Expand Down
Loading

0 comments on commit 4c86160

Please sign in to comment.