Commit Graph

94 Commits

Author SHA1 Message Date
5be85a4fc6 Refactored code to use PHP8 attributes instead of annotations
In this change, Doctrine and validation annotations have been replaced with PHP8 Attributes. The Rector tool has been configured with a list of annotations to convert to attributes. As a consequence, the PHPStan's rules have been updated to reflect these changes. The PHP8's nullable operator (?) has been added where required, and comments in field declaration have been replaced with #[Attribute] syntax.
2024-04-08 12:11:29 +02:00
0ff4593863 Apply rector rules: add annotation for doctrine mapping 2024-04-05 13:11:42 +02:00
72016e1a21 Apply rector rules: add annotation for doctrine mapping 2024-04-05 00:01:30 +02:00
579bd829f8 Apply rector rules: symfony up to 54 2024-04-04 23:30:25 +02:00
f251e6f100 upgrade phpunit: make data provider static 2024-02-14 12:28:14 +01:00
2ddfd56401 fix phpstan and rector errors, fix path for rector rules 2024-02-13 19:12:14 +01:00
f889d67e94 fixes after merge of master into upgrade-sf4 2024-02-12 22:31:16 +01:00
37af488f69 Merge branch 'master' into upgrade-sf5 2024-02-12 21:50:34 +01:00
036fe8d6f8 upgrade php-cs 3.49 2024-02-07 10:43:53 +01:00
27ce322690 upgrade php-cs-fixer to 3.47.0 2024-01-22 12:14:39 +01:00
3c8e59e088 php cs fixes after updating php cs fixer 2024-01-10 10:31:25 +01:00
825cd127d1 update php-cs-fixer and rector + fix rules 2024-01-09 13:50:45 +01:00
5703fd0046 Refactor code to directly use Doctrine's ManagerRegistry
Replaced most of the invocations of getDoctrine()->getManager() with ManagerRegistry->getManager(), and added ManagerRegistry injection to controllers where needed. This is part of an ongoing effort to improve code clarity, and avoid unnecessary method chaining in various parts of the codebase.
2023-12-16 19:09:34 +01:00
5f441eb5ac Fix path to csv template 2023-11-27 21:01:01 +01:00
170bb9586d Fix errors in custom field rendering and administration 2023-11-24 12:30:18 +01:00
5188891108 php style fixer 2023-10-26 15:21:20 +02:00
c6deb21606 replace old method of getting translator with injection of translatorInterface 2023-10-26 15:20:19 +02:00
bc2041cbdd apply more cs rules for php-cs 2023-10-17 13:27:03 +02:00
6b8d6b76ba Upgrade code from 146 to new standards 2023-10-16 18:04:40 +02:00
bad302f512 Update template pathes to new syntax 2023-10-02 13:56:22 +02:00
d2323e91ca new cs rule: single_line_empty_body
Rule is added to the last version of php-cs-fixer
2023-09-12 15:58:59 +02:00
6001e15907 Force "does not perform assertion" for test 2023-08-31 11:20:06 +02:00
e4e52234ad Rector: apply rules for doctrine code quality 2023-08-31 10:35:52 +02:00
0e0b0b8874 DX: fix cs 2023-08-02 23:25:19 +02:00
e2b500ea5f Fix usage of twig environment in twig custom fields rendering extensions 2023-08-02 23:25:18 +02:00
65e6ad0fc4 Fix loading extension: use the new way 2023-08-02 23:05:33 +02:00
009a0326d9 Configure routes using annotation 2023-08-02 23:05:33 +02:00
458a59fe1b Fix loading extension: use the new way 2023-08-02 16:26:05 +02:00
f570fe92a5 apply rector rules 2023-07-28 02:40:02 +02:00
c20f65eebb apply rector rules: symfony **UP TO** 44 2023-07-28 01:52:53 +02:00
dba1d0548e Use the new syntax for prepending the load of twig templates in some Chill*Extension class 2023-07-27 23:23:18 +02:00
9690359dfa Fix loading data for customfield, using proper DI 2023-07-23 00:31:27 +02:00
7a5db59ac2 remove deprecated templating component 2023-07-22 23:09:00 +02:00
aa553db659 apply rector rules after updating the code with master branch 2023-07-19 23:43:26 +02:00
e45430f0c9 Merge branch 'rector/rules-up-to-php82' into rector/rules-symfony 2023-07-19 23:22:57 +02:00
023a29cb78 apply rector rules: php up to php82 2023-07-19 23:19:50 +02:00
6e6f19c499 fix small risky code 2023-07-19 16:28:51 +02:00
075aca493b DX: type-hing oneToMany and ManyToMany properties as collection 2023-07-19 16:21:17 +02:00
efaa01f4f6 DX: rector apply rules 'symfony up to 4.4 2023-05-05 18:21:33 +02:00
6d63177ff4 apply rules rector up to php82 2023-05-01 21:39:45 +02:00
1c7d90a6ef fixes from a first test 2023-04-28 23:17:41 +02:00
7e19419861 fixes for last rebase and fixes for runtime 2023-04-28 23:03:36 +02:00
c35994203d fix phpstan issues 2023-04-28 22:55:01 +02:00
dde3002100 DX: apply rector rules up to php8.0 2023-04-28 22:30:33 +02:00
47d0334b9e Merge remote-tracking branch 'origin/master' into rector/rules-up-to-php74 2023-04-27 23:32:31 +02:00
746ed4f5e5 DX: fix cs 2023-04-15 00:43:55 +02:00
858ade467c DX: rector rules upt to PHP 74 2023-04-15 00:20:19 +02:00
ec7f59fc03 UX [translations] batch replace 'activité' by 'échange' + check !
note: fix some others mistakes
2023-04-14 15:58:27 +02:00
4c5dae60a8 DX: apply rector rulesets up to PHP 73 2023-03-29 22:39:11 +02:00
b9a7530f7a DX: apply rector rulesset up to PHP72 2023-03-29 22:32:52 +02:00