2
0
forked from Wavyzz/dolibarr
Commit Graph

2809 Commits

Author SHA1 Message Date
Laurent Destailleur
a5fec9f06f Merge branch 'develop' into PhanTypeInvalidRightOperandOfNumericOp 2024-03-23 20:44:54 +01:00
Laurent Destailleur
7b4aa959ae Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-23 20:39:22 +01:00
Can Arslan
4d6bd2a8e0 FIX: PHP Warning: Undefined properties 2024-03-22 14:17:39 -06:00
VESSILLER
828cf2cbce NEW now button when editing an event 2024-03-22 14:20:03 +01:00
MDW
a6f69d3304 Fix PhanTypeInvalidLeftOperandOfAdd with casts 2024-03-22 09:51:41 +01:00
Laurent Destailleur
60c626dbe4 Merge branch 'develop' into fix/PhanTypePossiblyInvalidDimOffset 2024-03-21 12:53:59 +01:00
MDW
aeefca7e7e Fix $arrayfields typing lost by dol_sort_array() by forcing the type 2024-03-20 23:29:48 +01:00
MDW
3a27977b46 Fix PhanTypeMismatchReturnNullable with typing test 2024-03-20 21:58:34 +01:00
MDW
69b64d30f5 Fix arg type to urlencode with cast 2024-03-20 04:10:07 +01:00
MDW
d78a1838c2 Fix arg type to str_replace() by cast 2024-03-20 04:08:27 +01:00
Laurent Destailleur
2b93caa7e7 Debug v20 2024-03-20 00:47:24 +01:00
Laurent Destailleur
71c833b3a2 FIX Title of event no visible on calendar 2024-03-20 00:40:58 +01:00
Laurent Destailleur
dad22a455b NEW Show error on ical parse 2024-03-20 00:38:10 +01:00
Laurent Destailleur
999c90642a Fix import of ical file 2024-03-20 00:05:24 +01:00
Laurent Destailleur
f756b5e872 Fix bad logic in date conversion 2024-03-19 23:30:27 +01:00
MDW
1933349eb0 Fix type of argument for str_pad 2024-03-19 02:58:59 +01:00
MDW
2c034e6aac Fix types of arguments for round and str_pad 2024-03-19 02:58:58 +01:00
MDW
fd9d48faac Fix phpstan CommonObject->fields - notnull is optional field 2024-03-19 00:32:00 +01:00
MDW
2a534539cb Fix json_decode requires bool for arg2 fixes PhanTypeMismatchArgumentInternal 2024-03-18 04:03:48 +01:00
Laurent Destailleur
ad99b89856 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-17 21:25:46 +01:00
Laurent Destailleur
9627894d8d More default values for colors 2024-03-17 21:07:21 +01:00
MDW
aa5aa2bf26 Add one more index to the theme_datacolor 2024-03-17 19:49:10 +01:00
MDW
a848a06b76 Force typing for /global did not help 2024-03-17 18:56:51 +01:00
Laurent Destailleur
e994d6650f Fix regression in GETPOST limit 2024-03-16 11:41:00 +01:00
Laurent Destailleur
79aa9fb1f1 Code simpler 2024-03-15 20:29:21 +01:00
Laurent Destailleur
0617d43460 Fix link to create an event 2024-03-15 14:39:40 +01:00
Laurent Destailleur
f0821a6b42 Fix date param must use the day/hour/year instead of one string date. 2024-03-15 13:34:49 +01:00
Laurent Destailleur
905ed49726 Merge pull request #28875 from W1W1-M/qual-list-new-action-time
QUAL use real time when creating action from list
2024-03-15 13:23:23 +01:00
William Mead
6d7ce609ca Updated add button to use minutes and local user time 2024-03-15 12:30:00 +01:00
Laurent Destailleur
470e68829d Merge branch 'develop' into fix/PhanTypeInvalidUnaryOperandNumeric 2024-03-15 10:03:50 +01:00
Laurent Destailleur
80e2e59373 Merge pull request #28862 from mdeweerd/fix/PhanTypeMismatchPropertyDefault
Fix & enable PhanTypeMismatchPropertyDefault
2024-03-15 09:33:40 +01:00
Laurent Destailleur
e238cc204e Merge pull request #28750 from mdeweerd/fix/PhanPluginSuspiciousParamPosition
Fix: Resolve several PhanPluginSuspiciousParamPosition cases
2024-03-15 08:45:25 +01:00
MDW
23785393a3 Add csslist to json keys 2024-03-15 03:55:52 +01:00
MDW
803249fc3b Fix PhanTypeMismatchPropertyDefault 2024-03-15 03:44:43 +01:00
MDW
69be3bbca6 Fix PhanTypeInvalidUnaryOperandNumeric & remove from exceptions
# Fix PhanTypeInvalidUnaryOperandNumeric & remove from exceptions

Fix by casting result of date() or by adding typing hints.

(This notification indicates a unary '-' or similar is performed
on a value that may not be a number).
2024-03-14 19:39:49 +01:00
MDW
a7274050d2 Fix PhanPluginSuspiciousParamPosition 2024-03-14 19:39:31 +01:00
William Mead
da2546d9d3 Added contributor details 2024-03-14 13:48:44 +01:00
William Mead
93a2ab24c8 Deleted AGENDA_ENABLE_DONEBY option. Cleaned code. 2024-03-14 13:43:44 +01:00
William Mead
1134d9a7f0 Deleted userdoneid. Cleaned code. 2024-03-14 13:39:43 +01:00
William Mead
7629455b7d Added deprecated for user done 2024-03-14 09:29:51 +01:00
Laurent Destailleur
2b5ea3fa74 Merge pull request #28810 from W1W1-M/fix-cactioncomm-php-warnings
Fix PHP warnings cactioncomm class
2024-03-13 14:31:53 +01:00
William Mead
b9007acbf1 Fixed PHP warnings 2024-03-13 14:03:27 +01:00
MDW
3c24140ccf Fix PhanPluginRedundantAssignment 2024-03-13 00:40:35 +01:00
Laurent Destailleur
a6926c29c0 Merge pull request #28778 from fappels/develop_fix_delivery_note
Fix shipping is not a delivery_note (is sub module of shipping)
2024-03-12 14:53:51 +01:00
Laurent Destailleur
74b8162d22 Merge pull request #28700 from mdeweerd/urlencode/fixuptype
Fix: Ensure the argument type for urlencode is string
2024-03-12 14:43:41 +01:00
MDW
88d59896ec Qual: 'enabled' in fields can be string ('isModEnabled(...)')
# Qual: 'enabled' in fields can be string ('isModEnabled(...)')

Update PHPdoc to allow that enabled is a string
2024-03-12 13:38:08 +01:00
Francis Appels
7ff68a5819 Fix shipping is not a delivery_note (sub module of shipping) 2024-03-12 11:07:18 +01:00
MDW
4ec7a53e3f Fix: Repeat fields typing in CommonClass children
# Fix: Repeat fields typing in CommonClass children

phpstan needs typing to be 'co-variant' and therefore typing must be repeated as
the method is not to initialise the property in the constructor, but to override
the proparty by a 'local' definition in the child class
2024-03-11 17:38:52 +01:00
MDW
b72cf193c4 Fix some cases of PhanTypeSuspiciousStringExpression (#28751)
* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-11 14:01:28 +01:00
MDW
dbfb1180ee Qual: Fix PhanPluginDuplicateIfStatements & remove exceptions (#28749)
# Qual: Fix PhanPluginDuplicateIfStatements & remove exceptions

Fix occurences of PhanPluginDuplicateIfStatements which are if statements where the
consecutive branches execute the same code, making it useles to test the condition
2024-03-11 12:58:51 +01:00