Release 2.0.18 (#4003)

* prevent too long values for user preferences
* add chart value 0 to y-axis if last value > 0, to always display the zero line (project details)
* add user-preferences to invoice hydrator
* DateTime vs DateTimeInterface
* simplify permission config
* fix query for teamleads limiting to only selected teams not possible
This commit is contained in:
Kevin Papst
2023-05-08 17:11:55 +02:00
committed by GitHub
parent d8f72b8b88
commit 1099e76244
74 changed files with 627 additions and 621 deletions

View File

@@ -7,6 +7,12 @@ includes:
- %rootDir%/../phpstan/conf/bleedingEdge.neon
parameters:
featureToggles:
skipCheckGenericClasses:
- Symfony\Component\Form\AbstractType
- Symfony\Component\Form\FormInterface
- Symfony\Component\Form\FormTypeExtensionInterface
- Symfony\Component\Form\FormTypeInterface
level: 9
strictRules:
allRules: false
@@ -55,16 +61,6 @@ parameters:
count: 1
path: src/API/Authentication/TokenAuthenticator.php
-
message: "#^Method App\\\\API\\\\BaseApiController\\:\\:createSearchForm\\(\\) has parameter \\$data with no type specified\\.$#"
count: 1
path: src/API/BaseApiController.php
-
message: "#^Method App\\\\API\\\\BaseApiController\\:\\:createSearchForm\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
count: 1
path: src/API/BaseApiController.php
-
message: "#^Parameter \\#1 \\$user of static method App\\\\Timesheet\\\\DateTimeFactory\\:\\:createByUser\\(\\) expects App\\\\Entity\\\\User, App\\\\Entity\\\\User\\|null given\\.$#"
count: 1
@@ -910,31 +906,6 @@ parameters:
count: 1
path: src/Configuration/SystemConfiguration.php
-
message: "#^Method App\\\\Controller\\\\AbstractController\\:\\:createFormForGetRequest\\(\\) has parameter \\$data with no type specified\\.$#"
count: 1
path: src/Controller/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\AbstractController\\:\\:createFormForGetRequest\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\AbstractController\\:\\:createFormWithName\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\AbstractController\\:\\:createSearchForm\\(\\) has parameter \\$data with no type specified\\.$#"
count: 1
path: src/Controller/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\AbstractController\\:\\:createSearchForm\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\AbstractController\\:\\:getLastSearch\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
@@ -1335,21 +1306,6 @@ parameters:
count: 1
path: src/Controller/Reporting/ReportUsersYearController.php
-
message: "#^Parameter \\#1 \\$begin of class App\\\\Model\\\\MonthlyStatistic constructor expects DateTime, DateTime\\|null given\\.$#"
count: 1
path: src/Controller/Reporting/ReportUsersYearController.php
-
message: "#^Parameter \\#1 \\$begin of method App\\\\Timesheet\\\\TimesheetStatisticService\\:\\:getMonthlyStats\\(\\) expects DateTime, DateTime\\|null given\\.$#"
count: 1
path: src/Controller/Reporting/ReportUsersYearController.php
-
message: "#^Parameter \\#1 \\$financialYear of method App\\\\Timesheet\\\\DateTimeFactory\\:\\:createEndOfFinancialYear\\(\\) expects DateTimeInterface, DateTime\\|null given\\.$#"
count: 1
path: src/Controller/Reporting/ReportUsersYearController.php
-
message: "#^Parameter \\#3 \\$users of method App\\\\Timesheet\\\\TimesheetStatisticService\\:\\:getMonthlyStats\\(\\) expects array\\<App\\\\Entity\\\\User\\>, iterable\\<App\\\\Entity\\\\User\\> given\\.$#"
count: 1
@@ -1375,16 +1331,6 @@ parameters:
count: 1
path: src/Controller/Reporting/UserWeekController.php
-
message: "#^Cannot call method modify\\(\\) on DateTime\\|null\\.$#"
count: 2
path: src/Controller/Reporting/UserYearController.php
-
message: "#^Cannot clone non\\-object variable \\$start of type DateTime\\|null\\.$#"
count: 2
path: src/Controller/Reporting/UserYearController.php
-
message: "#^Method App\\\\Controller\\\\Reporting\\\\UserYearController\\:\\:getData\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
@@ -1395,21 +1341,6 @@ parameters:
count: 1
path: src/Controller/Reporting/UserYearController.php
-
message: "#^Parameter \\#1 \\$begin of class App\\\\Model\\\\MonthlyStatistic constructor expects DateTime, DateTime\\|null given\\.$#"
count: 1
path: src/Controller/Reporting/UserYearController.php
-
message: "#^Parameter \\#1 \\$begin of method App\\\\Controller\\\\Reporting\\\\AbstractUserReportController\\:\\:prepareReport\\(\\) expects DateTime, DateTime\\|null given\\.$#"
count: 1
path: src/Controller/Reporting/UserYearController.php
-
message: "#^Parameter \\#1 \\$financialYear of method App\\\\Timesheet\\\\DateTimeFactory\\:\\:createEndOfFinancialYear\\(\\) expects DateTimeInterface, DateTime\\|null given\\.$#"
count: 1
path: src/Controller/Reporting/UserYearController.php
-
message: "#^Parameter \\#3 \\$user of class App\\\\Model\\\\MonthlyStatistic constructor expects App\\\\Entity\\\\User, App\\\\Entity\\\\User\\|null given\\.$#"
count: 1
@@ -1675,16 +1606,6 @@ parameters:
count: 1
path: src/DependencyInjection/AppExtension.php
-
message: "#^Method App\\\\DependencyInjection\\\\AppExtension\\:\\:getFilteredPermissions\\(\\) has parameter \\$permissions with no value type specified in iterable type array\\.$#"
count: 1
path: src/DependencyInjection/AppExtension.php
-
message: "#^Method App\\\\DependencyInjection\\\\AppExtension\\:\\:getFilteredPermissions\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/DependencyInjection/AppExtension.php
-
message: "#^Method App\\\\DependencyInjection\\\\Configuration\\:\\:getProjectNode\\(\\) has no return type specified\\.$#"
count: 1
@@ -4240,26 +4161,6 @@ parameters:
count: 1
path: src/Form/Type/UserPreferencesCollectionType.php
-
message: "#^Cannot call method modify\\(\\) on mixed\\.$#"
count: 2
path: src/Form/Type/WeekPickerType.php
-
message: "#^Cannot clone non\\-object variable \\$date of type mixed\\.$#"
count: 2
path: src/Form/Type/WeekPickerType.php
-
message: "#^Cannot call method modify\\(\\) on mixed\\.$#"
count: 2
path: src/Form/Type/YearPickerType.php
-
message: "#^Cannot clone non\\-object variable \\$date of type mixed\\.$#"
count: 2
path: src/Form/Type/YearPickerType.php
-
message: "#^Cannot access offset mixed on mixed\\.$#"
count: 1
@@ -5155,21 +5056,6 @@ parameters:
count: 1
path: src/Project/ProjectStatisticService.php
-
message: "#^Property App\\\\Reporting\\\\AbstractUserList\\:\\:\\$date has no type specified\\.$#"
count: 1
path: src/Reporting/AbstractUserList.php
-
message: "#^Property App\\\\Reporting\\\\AbstractUserList\\:\\:\\$decimal has no type specified\\.$#"
count: 1
path: src/Reporting/AbstractUserList.php
-
message: "#^Property App\\\\Reporting\\\\AbstractUserList\\:\\:\\$sumType has no type specified\\.$#"
count: 1
path: src/Reporting/AbstractUserList.php
-
message: "#^Method App\\\\Reporting\\\\CustomerMonthlyProjects\\\\CustomerMonthlyProjectsRepository\\:\\:getGroupedByCustomerProjectActivityUser\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
@@ -6590,11 +6476,6 @@ parameters:
count: 1
path: src/Utils/Pagination.php
-
message: "#^Method App\\\\Utils\\\\PaginationTemplate\\:\\:getDefaultOptions\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Utils/PaginationTemplate.php
-
message: "#^Parameter \\#1 \\$class of method App\\\\Utils\\\\PaginationTemplate\\:\\:linkLi\\(\\) expects string, mixed given\\.$#"
count: 1