MDW
8669993ecf
Qual: Fix phan notices (compta/prel..fichinter) ( #33485 )
...
* Qual: Fix phan notices (asset..compta/paiement)
* Qual: Fix phan notices (compta/prel..fichinter)
2025-03-19 15:21:48 +01:00
Alexandre Janniaux
a847099e00
TraceableDB: add missing regexpsql() wrapper
...
The TraceableDB must also redirect to the underlying database object for
regexpsql queries, otherwise, a DoliDBPgsql DB with the debugbar enabled
would try to use REGEXP() commands which are not supported on
Postgresql.
2025-03-02 15:00:53 +01:00
MDW
32bf8c5cd5
Qual: Fix phan notices (website)
2025-02-27 11:40:42 +01:00
MDW
97099b854f
Qual: Fix phan notices (install)
2025-02-05 01:43:41 +01:00
MDW
ec2a1928ba
Qual: Update fields phpdoc to include fields that are defined/used in some cases
...
# Qual: Update fields phpdoc to include fields that are defined/used in some cases
comment, copytoclipboard, autofocusoncreated are documented and used in some cases for the
$fields definition
2024-12-05 02:36:50 +01:00
MDW
b91c99b18a
Qual: Fix phan/phpstan notices in class files (part 3) ( #31578 )
...
* fix phpstan in conf class (#31630 )
* fix phpstan
* fix phan
* Fix merge
* Qual: Avoid notification with typing hint
* Qual: Fix notices link.class
* Qual: Fix notices link..socialneetworkmanager.class and DoliDb->DoliDB
* Qual: Fix notices for link..utils.class
* Qual: Fix notices for db classes
* Update translate.class.php
* Update translate.class.php
---------
Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com >
Co-authored-by: Laurent Destailleur <eldy@users.sourceforge.net >
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-10-29 22:44:47 +01:00
MDW
ca414de526
Qual: Fix $fields related notices with Phan ( #30704 )
...
* Qual: Typing hints/ignore directives for phan notices
* Update field typing
2024-08-21 13:23:35 +02:00
MDW
54880f92cd
Qual: Fix PhanTypeMismatchProperty and some other phan notices ( #30542 )
...
* Qual: Fix PhanTypeMismatchProperty and some other phan notices
* Qual: Phan fixes for BOM
* Phan - fix fields
* fixup! Qual: Phan fixes for BOM
* Fix phpstan double array keys for syslog
* Fix $fields phpdoc
* Fix phan typing issues with intermediate var and ??
* Fix phan typing issue with ?? operator
* Ignore htdocs/install/install.forced.php for git
* Qual: Revert to original code, ignore notice
When changing the method to avoid one notice type, another one
appears. So simply ignoring this error.
* Qual: Revert to original code, ignore notice
When changing the method to avoid one notice type, another one
appears. So simply ignoring this error.
* Update baseline
* Qual: Phan fixes for BOM
* fixup! Qual: Phan fixes for BOM
* Fix phpstan double array keys for syslog
* Qual: Revert to original code, ignore notice
When changing the method to avoid one notice type, another one
appears. So simply ignoring this error.
* Ignore PhanTypeSuspiciousNonTraversableForeach to allow integration
* Fix typing hints (phpstan)
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-08-15 17:05:00 +02:00
MDW
d6948077b2
Qual: Fix spelling/update .pre-commit configuration (versions) ( #30546 )
...
* Qual: Update pre-commit configuration
* Qual: Update spelling
* Ignore use of deprecated constant
2024-08-07 01:20:43 +02:00
Frédéric FRANCE
00b2185813
fix phpstan ( #29258 )
...
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
2024-04-07 11:50:26 +02:00
Laurent Destailleur
7c8d5fd50e
Doc
2024-04-05 10:26:43 +02:00
MDW
c7560a7c89
Qual: improve typing for jdate
...
# Qual: improve typing for jdate
Limit jdate return type to int|'' .
Tested with phan and phpstan.
This will allow setting the same type on the date fields and allow
detecting the assignment of non empty strings.
int|''|'specific value' also works, so could be used on other fields.
2024-04-02 13:40:04 +02:00
Laurent Destailleur
67b12fc438
FIX bad search on _ char in like when Debugbar is on
2024-03-29 17:08:31 +01:00
MDW
7032578914
Fix PHPdoc typing
2024-03-21 13:55:29 +01:00
MDW
fc6af20479
Update typing for database functions
2024-03-21 00:00:00 +01:00
MDW
bd002480ce
Qual: Spelling htdocs/[d-k]* ( #27427 )
...
Highlights:
- htdocs/install/doctemplates/websites/website_template-restaurant/containers/page249.tpl.php
Potential functional change (fix) because toekn was changed to token:
`<input type=hidden name=toekn`
- htdocs/install/upgrade2.php
$filles changed to $children
- htdocs/intracommreport/class/intracommreport.class.php
Local $enveloppe changed to $envelope.
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-01-13 19:48:41 +01:00
MDW
39769482b1
Qual: Fix typing hints for DoliDB ( #27484 )
...
# Qual: Fix typing hints for DoliDB
This should help the static tools for type and method checking.
2024-01-13 15:50:02 +01:00
Frédéric FRANCE
61b79fda17
avoid phpstan error with phpdoc
2023-12-06 15:46:39 +01:00
Frédéric FRANCE
53c8a3acf8
clean phpdoc for phpstan ( #26905 )
2023-12-01 19:51:32 +01:00
Laurent Destailleur
4c844dfd12
Fix warnings
2023-11-27 12:13:50 +01:00
Laurent Destailleur
630e305161
Standardize db drivers. No more static class.
2023-08-04 04:18:59 +02:00
Frédéric FRANCE
0c86eebcc7
fix debug bar
2023-04-14 10:15:23 +02:00
Laurent Destailleur
fbc74cd571
Fix missing doxygen doc
2023-01-14 15:57:12 +01:00
Laurent Destailleur
0f763d2606
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
2022-12-31 15:01:24 +01:00
Laurent Destailleur
1934db2dd1
Debug v17
2022-12-31 14:37:33 +01:00
Laurent Destailleur
24fcb2ff16
The deprecated method escapeunderscore() of database handlers has been
...
removed. You must use escapeforlike instead.
2022-12-17 13:06:22 +01:00
Laurent Destailleur
94767f5fd1
Fix signature of begin method
2022-10-06 17:09:38 +02:00
Laurent Destailleur
34da698537
FIX Import in upgrade when using a socialnetwork field.
2022-09-14 16:01:45 +02:00
Laurent Destailleur
6592eb5d73
Debug for php 8.1
2022-05-08 18:25:22 +02:00
Laurent Destailleur
0176ab6057
Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/accountancy/bookkeeping/list.php
2021-09-27 11:40:47 +02:00
Laurent Destailleur
d5d4b8d8e0
Fix escape the undescore on search in website module
2021-09-26 14:21:23 +02:00
Laurent Destailleur
cac1a7ba5f
Fix sql request when using encrypt
2021-09-02 13:45:44 +02:00
Laurent Destailleur
06a0d922cc
NEW Can use the result_mode of mysqli driver. Save memory for list count
2021-08-16 22:01:58 +02:00
Indelog
843f49643d
Fix Debugbarr : TraceableDB::idate not compatible with DolDB::idate
...
The `TracableDB` class extend the `DolDB` but not implement the method `idate`
correctly : it missing the `$gm` parameter.
2021-01-08 12:39:03 +01:00
Scrutinizer Auto-Fixer
7f52920716
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-10-31 13:32:18 +00:00
Laurent Destailleur
f57b4fd2fd
Fix escaping
2020-09-20 02:30:53 +02:00
Laurent Destailleur
622b5c4ac9
Doxygen
2020-05-27 23:37:22 +02:00
Scrutinizer Auto-Fixer
444c293c01
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-04-10 08:59:32 +00:00
Laurent Destailleur
78bfc8997d
Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/core/class/link.class.php
2019-10-11 16:14:29 +02:00
Laurent Destailleur
c3aba5f1a3
FIX #12083
2019-10-11 14:53:30 +02:00
Abbes Bahfir
8f2786cf7b
fix:this is not accessible in static context
2019-08-10 00:09:36 +02:00
Abbes Bahfir
ae4efe9b75
fix:this is not accessible in static context
2019-08-09 10:02:56 +01:00
Laurent Destailleur
adb3062a9f
Work on nblignes -> nblines
2019-06-29 16:38:14 +02:00
Laurent Destailleur
2854e0dae6
Code comment
2019-06-22 19:15:15 +02:00
Laurent Destailleur
d9f6d9f0c3
Code comment
2019-06-22 19:12:44 +02:00
Laurent Destailleur
71d7c11388
Fix phpcs
2019-03-16 23:31:48 +01:00
Laurent Destailleur
9a132d9691
Fix phpcs
2019-03-16 23:17:23 +01:00
Laurent Destailleur
95c1275efc
Fix phpcs
2019-03-16 20:10:22 +01:00
Laurent Destailleur
c2badb57d7
NEW: Add module debugbar
2019-03-16 16:27:14 +01:00