Laurent Destailleur
fffe74246c
Fix all short tables must use the setup for the number of rows
2024-04-03 15:30:10 +02:00
Laurent Destailleur
6004d3ae14
Merge pull request #29204 from mdeweerd/fix/projet_abs
...
Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type
2024-04-03 02:06:52 +02:00
Laurent Destailleur
9aa5e43836
Doc
2024-04-02 23:51:45 +02:00
MDW
e64e57716c
Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type
...
# Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type
I got the following message:
`Fatal error: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in D:\mdeweerd\workspace\dolibarr\htdocs\projet\list.php on line 233`
I examined the phan report and there was no mention of this because dol_eval was
said to return mixed.
In order to detect such cases, I amended the dol_eval return type to ensure to find
most of the locations where a cast is needed.
2024-04-02 22:52:52 +02:00
Laurent Destailleur
c6cef436dc
Fix warning
2024-04-02 20:59:20 +02:00
MDW
146b735269
New: dol_get_object_properties to get real and magic props
...
# New: dol_get_object_properties to get real and magic props
This method will get an array with real and magic properties
from an object (if $properties is provided).
2024-04-02 11:25:18 +02:00
Laurent Destailleur
e3037794aa
Look and feel v20
2024-04-01 15:04:20 +02:00
Laurent Destailleur
8ed9866433
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-03-31 19:26:54 +02:00
Laurent Destailleur
49af1da76c
Fix #29031 Fix #29059
2024-03-31 19:14:02 +02:00
MDW
aad8c3d3d2
Improve phpdoc for make_substitutions
2024-03-31 01:03:32 +01:00
MDW
9e892f4367
Improve dol_clone typing by using phpdoc template
2024-03-29 18:26:46 +01:00
Laurent Destailleur
ba7db18389
Merge pull request #29096 from altairis-noe/element_properties
...
NEW: consider document lines in element properties
2024-03-29 14:37:26 +01:00
Laurent Destailleur
3e8c3edd6d
Clean code from _GET
2024-03-28 17:10:22 +01:00
Noé Cendrier
2ab704d630
whoops
2024-03-28 10:36:49 +01:00
Noé Cendrier
bcd99c1365
NEW: consider document lines in element properties
2024-03-28 09:19:46 +01:00
MDW
f41d21407f
Fix typing for $links arg in dol_fiche_head()
2024-03-27 10:18:45 +01:00
MDW
ceeaf8b534
Be less restrictive on links index (for phpstan)
2024-03-27 10:18:44 +01:00
MDW
a30bf48e16
Improve phpdoc typing
2024-03-27 10:18:40 +01:00
MDW
d765e847a7
Allow empty array for dol_print_date() return
2024-03-27 10:18:38 +01:00
MDW
cfe66e2f60
Improve typing, init var, suppress notification
2024-03-27 10:18:21 +01:00
MDW
7c660d3392
PHPdoc improvement: dol_print_error_email, price
2024-03-27 10:18:20 +01:00
MDW
974ecf82fe
Fix get_class on potential null
2024-03-27 10:18:18 +01:00
MDW
c76baf1e10
Fix typing, inits, ignore some phan's, fix caching reuse
2024-03-27 10:18:16 +01:00
MDW
2cbd57654a
Improve PHPdoc for getEntity/setEntity
2024-03-27 10:17:26 +01:00
Regis Houssin
08aed338c1
FIX phan phan la tulip
2024-03-26 22:35:21 +01:00
Laurent Destailleur
caf6367a4e
NEW Add the process and user ID into log
2024-03-26 14:14:11 +01:00
Laurent Destailleur
4efa503400
NEW Accept the __NOW__ and __USER_ID__key into filters
2024-03-25 23:53:28 +01:00
Laurent Destailleur
92312ce4c2
Allow UFS syntax into load_previous_next_ref()
2024-03-25 20:11:24 +01:00
MDW
969b078351
Add PHPdoc typing
2024-03-24 15:40:25 +01:00
MDW
949ccf312a
Force type to fix PhanNonClassMethodCall
2024-03-24 15:40:24 +01:00
Laurent Destailleur
ed7a87eea1
Clean code: Use the conf->cache to store cache data
2024-03-24 14:42:57 +01:00
Laurent Destailleur
e423ca625b
Doc
2024-03-24 14:12:55 +01:00
Laurent Destailleur
f5fc0beba0
Doc
2024-03-24 14:11:39 +01:00
Laurent Destailleur
6c83239f16
Merge pull request #29034 from mdeweerd/PhanTypeInvalidRightOperandOfNumericOp
...
Fix & enable PhanTypeInvalidRightOperandOfNumericOp
2024-03-24 02:07:59 +01:00
Laurent Destailleur
6d8f946979
Debug v20
2024-03-24 02:03:34 +01:00
Laurent Destailleur
d9488770ae
GETPOST(..., 'alpha') does not accept \ char anymore. Replaced with /
2024-03-24 01:45:31 +01:00
Laurent Destailleur
6a0678e717
Merge branch 'develop' into PhanTypeInvalidRightOperandOfNumericOp
2024-03-23 17:36:29 +01:00
Laurent Destailleur
d297dfe60e
Fix warning
2024-03-23 17:32:09 +01:00
MDW
b1675d5139
Type return value for getLocalTaxesFromRate
2024-03-22 09:51:43 +01:00
Laurent Destailleur
7b0177a84d
Move to getDolGlobalString
2024-03-22 00:37:56 +01:00
MDW
826a349177
Merge branch 'develop' into fix/PhanTypeMismatchInternal3
2024-03-20 11:45:15 +01:00
Laurent Destailleur
702309de09
Doc
2024-03-20 10:52:07 +01:00
MDW
63d5cef0f9
Fix PHPdoc typing, casting and minor rewrites for PhanTypeMismatchArgumentInternal
2024-03-20 04:08:04 +01:00
MDW
a094ad38fc
Fix spelling (using beta codespell)
...
# Fix spelling (using beta codespell
New spelling fixes - ignoring thirdparty which should be either third-party
or third party.
2024-03-20 00:35:01 +01:00
Laurent Destailleur
0476ca9a47
Doc
2024-03-19 17:00:59 +01:00
MDW
397cd58f26
Fix arg types to substr(),mb_strcut() and number_format() by casting & typing
2024-03-19 02:59:13 +01:00
MDW
9647c46371
Add empty lines to avoid comment alignments
2024-03-19 02:44:05 +01:00
MDW
5037995454
Fix PhanTypeSuspiciousStringExpression
2024-03-19 02:43:24 +01:00
Laurent Destailleur
13f7012d40
NEW Add maintenance tool to switch utf8 -> utf8mb4
2024-03-18 18:17:53 +01:00
Laurent Destailleur
57181e6407
Typo
2024-03-18 15:28:19 +01:00