Release 2.0.5 (#3888)
- Fixed: mandatory fields / form validation for invoice template - Added: Duration as calendar title replacer (open: running records) - Fixed: HTML injection in Calendar - Fixed: Doctrine Proxies are not initialized (leads to empty customer/project) - Fixed: tag creation - Fixed: validation errors do not need to be logged in prod - Removed: Customer VCard download, as used library is outdated and not maintained - Added: supporting translations domains in many new places (menu, help_text, page_setup, report, exporter, calendar)
This commit is contained in:
125
phpstan.neon
125
phpstan.neon
@@ -2060,36 +2060,11 @@ parameters:
|
||||
count: 1
|
||||
path: src/Entity/Customer.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\CustomerComment\\:\\:setCreatedAt\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/CustomerComment.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\CustomerComment\\:\\:setCreatedBy\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/CustomerComment.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\CustomerComment\\:\\:setMessage\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/CustomerComment.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\CustomerComment\\:\\:setPinned\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/CustomerComment.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\EntityWithMetaFields\\:\\:getMetaFields\\(\\) return type with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection does not specify its types\\: TKey, T$#"
|
||||
count: 1
|
||||
path: src/Entity/EntityWithMetaFields.php
|
||||
|
||||
-
|
||||
message: "#^Cannot call method getDueDays\\(\\) on App\\\\Entity\\\\InvoiceTemplate\\|null\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/Invoice.php
|
||||
|
||||
-
|
||||
message: "#^Cannot call method getTax\\(\\) on App\\\\Invoice\\\\CalculatorInterface\\|null\\.$#"
|
||||
count: 1
|
||||
@@ -2100,11 +2075,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Entity/Invoice.php
|
||||
|
||||
-
|
||||
message: "#^Cannot call method getVat\\(\\) on App\\\\Entity\\\\InvoiceTemplate\\|null\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/Invoice.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\Invoice\\:\\:getMetaFields\\(\\) return type with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection does not specify its types\\: TKey, T$#"
|
||||
count: 1
|
||||
@@ -2185,26 +2155,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Entity/Project.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\ProjectComment\\:\\:setCreatedAt\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/ProjectComment.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\ProjectComment\\:\\:setCreatedBy\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/ProjectComment.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\ProjectComment\\:\\:setMessage\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/ProjectComment.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\ProjectComment\\:\\:setPinned\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: src/Entity/ProjectComment.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Entity\\\\Tag\\:\\:__toString\\(\\) should return string but returns string\\|null\\.$#"
|
||||
count: 1
|
||||
@@ -3185,11 +3135,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Form/API/TimesheetApiEditForm.php
|
||||
|
||||
-
|
||||
message: "#^Strict comparison using \\=\\=\\= between false and false will always evaluate to true\\.$#"
|
||||
count: 1
|
||||
path: src/Form/API/TimesheetApiEditForm.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Form\\\\AbstractRateForm\\:\\:addFields\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
@@ -3335,11 +3280,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Form/Extension/SelectWithApiDataExtension.php
|
||||
|
||||
-
|
||||
message: "#^Strict comparison using \\!\\=\\= between non\\-falsy\\-string and '' will always evaluate to true\\.$#"
|
||||
count: 1
|
||||
path: src/Form/Extension/SelectWithApiDataExtension.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$haystack of function stripos expects string, bool\\|float\\|int\\|string given\\.$#"
|
||||
count: 2
|
||||
@@ -4970,11 +4910,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Form/Type/TeamType.php
|
||||
|
||||
-
|
||||
message: "#^Cannot cast mixed to int\\.$#"
|
||||
count: 1
|
||||
path: src/Form/Type/TimePickerType.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$format of static method DateTime\\:\\:createFromFormat\\(\\) expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
@@ -5405,11 +5340,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Invoice/Renderer/AbstractTwigRenderer.php
|
||||
|
||||
-
|
||||
message: "#^Strict comparison using \\!\\=\\= between float and \\-1 will always evaluate to true\\.$#"
|
||||
count: 1
|
||||
path: src/Invoice/Renderer/AdvancedValueBinder.php
|
||||
|
||||
-
|
||||
message: "#^Cannot call method getEntries\\(\\) on App\\\\Invoice\\\\CalculatorInterface\\|null\\.$#"
|
||||
count: 3
|
||||
@@ -5635,11 +5565,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Ldap/LdapManager.php
|
||||
|
||||
-
|
||||
message: "#^PHPDoc tag @var for variable \\$email has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: src/Ldap/LdapManager.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$baseDn of method App\\\\Ldap\\\\LdapDriver\\:\\:search\\(\\) expects string, bool\\|float\\|int\\|string given\\.$#"
|
||||
count: 1
|
||||
@@ -5965,16 +5890,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Project/ProjectStatisticService.php
|
||||
|
||||
-
|
||||
message: "#^Strict comparison using \\!\\=\\= between DateTime and false will always evaluate to true\\.$#"
|
||||
count: 1
|
||||
path: src/Project/ProjectStatisticService.php
|
||||
|
||||
-
|
||||
message: "#^Strict comparison using \\!\\=\\= between null and list\\<array\\{id\\: int\\|numeric\\-string, duration\\: int\\|numeric\\-string, rate\\: float\\|int\\|numeric\\-string, internalRate\\: float\\|int\\|numeric\\-string, counter\\: int\\<0, max\\>\\|numeric\\-string, billable\\: bool, exported\\: bool\\}\\> will always evaluate to true\\.$#"
|
||||
count: 1
|
||||
path: src/Project/ProjectStatisticService.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Reporting\\\\AbstractUserList\\:\\:\\$date has no type specified\\.$#"
|
||||
count: 1
|
||||
@@ -6065,21 +5980,11 @@ parameters:
|
||||
count: 1
|
||||
path: src/Repository/ActivityRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$lockMode \\(null\\) of method App\\\\Repository\\\\ActivityRepository\\:\\:find\\(\\) should be contravariant with parameter \\$lockMode \\(int\\|null\\) of method Doctrine\\\\ORM\\\\EntityRepository\\<App\\\\Entity\\\\Activity\\>\\:\\:find\\(\\)$#"
|
||||
count: 1
|
||||
path: src/Repository/ActivityRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, iterable\\<App\\\\Entity\\\\Team\\> given\\.$#"
|
||||
count: 1
|
||||
path: src/Repository/ActivityRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$lockVersion \\(null\\) of method App\\\\Repository\\\\ActivityRepository\\:\\:find\\(\\) should be contravariant with parameter \\$lockVersion \\(int\\|null\\) of method Doctrine\\\\ORM\\\\EntityRepository\\<App\\\\Entity\\\\Activity\\>\\:\\:find\\(\\)$#"
|
||||
count: 1
|
||||
path: src/Repository/ActivityRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repository\\\\BookmarkRepository\\:\\:deleteBookmark\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
@@ -6160,21 +6065,11 @@ parameters:
|
||||
count: 1
|
||||
path: src/Repository/CustomerRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$lockMode \\(null\\) of method App\\\\Repository\\\\CustomerRepository\\:\\:find\\(\\) should be contravariant with parameter \\$lockMode \\(int\\|null\\) of method Doctrine\\\\ORM\\\\EntityRepository\\<App\\\\Entity\\\\Customer\\>\\:\\:find\\(\\)$#"
|
||||
count: 1
|
||||
path: src/Repository/CustomerRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, iterable\\<App\\\\Entity\\\\Team\\> given\\.$#"
|
||||
count: 1
|
||||
path: src/Repository/CustomerRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$lockVersion \\(null\\) of method App\\\\Repository\\\\CustomerRepository\\:\\:find\\(\\) should be contravariant with parameter \\$lockVersion \\(int\\|null\\) of method Doctrine\\\\ORM\\\\EntityRepository\\<App\\\\Entity\\\\Customer\\>\\:\\:find\\(\\)$#"
|
||||
count: 1
|
||||
path: src/Repository/CustomerRepository.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'counter' on mixed\\.$#"
|
||||
count: 1
|
||||
@@ -6405,21 +6300,11 @@ parameters:
|
||||
count: 1
|
||||
path: src/Repository/ProjectRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$lockMode \\(null\\) of method App\\\\Repository\\\\ProjectRepository\\:\\:find\\(\\) should be contravariant with parameter \\$lockMode \\(int\\|null\\) of method Doctrine\\\\ORM\\\\EntityRepository\\<App\\\\Entity\\\\Project\\>\\:\\:find\\(\\)$#"
|
||||
count: 1
|
||||
path: src/Repository/ProjectRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, iterable\\<App\\\\Entity\\\\Team\\> given\\.$#"
|
||||
count: 1
|
||||
path: src/Repository/ProjectRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$lockVersion \\(null\\) of method App\\\\Repository\\\\ProjectRepository\\:\\:find\\(\\) should be contravariant with parameter \\$lockVersion \\(int\\|null\\) of method Doctrine\\\\ORM\\\\EntityRepository\\<App\\\\Entity\\\\Project\\>\\:\\:find\\(\\)$#"
|
||||
count: 1
|
||||
path: src/Repository/ProjectRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repository\\\\Query\\\\BaseQuery\\:\\:getOrderGroups\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
@@ -6735,21 +6620,11 @@ parameters:
|
||||
count: 1
|
||||
path: src/Repository/TimesheetRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$lockMode \\(null\\) of method App\\\\Repository\\\\TimesheetRepository\\:\\:find\\(\\) should be contravariant with parameter \\$lockMode \\(int\\|null\\) of method Doctrine\\\\ORM\\\\EntityRepository\\<App\\\\Entity\\\\Timesheet\\>\\:\\:find\\(\\)$#"
|
||||
count: 1
|
||||
path: src/Repository/TimesheetRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, iterable\\<App\\\\Entity\\\\Team\\> given\\.$#"
|
||||
count: 1
|
||||
path: src/Repository/TimesheetRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$lockVersion \\(null\\) of method App\\\\Repository\\\\TimesheetRepository\\:\\:find\\(\\) should be contravariant with parameter \\$lockVersion \\(int\\|null\\) of method Doctrine\\\\ORM\\\\EntityRepository\\<App\\\\Entity\\\\Timesheet\\>\\:\\:find\\(\\)$#"
|
||||
count: 1
|
||||
path: src/Repository/TimesheetRepository.php
|
||||
|
||||
-
|
||||
message: "#^Cannot call method getSearchFields\\(\\) on App\\\\Utils\\\\SearchTerm\\|null\\.$#"
|
||||
count: 1
|
||||
|
||||
Reference in New Issue
Block a user