Commit Graph

1015 Commits

Author SHA1 Message Date
Laurent Destailleur
e73f79ca96 Qual: Remove unnecessary use of $_GET 2024-03-28 20:19:28 +01:00
Laurent Destailleur
747a5c4114 NEW contenteditable is supported on table,header,footer and menu tags 2024-03-26 00:49:34 +01:00
Laurent Destailleur
0554fc61f5 NEW contenteditable is supported on table,header,footer and menu tags 2024-03-26 00:18:11 +01:00
Laurent Destailleur
150845cd02 Debug v20 2024-03-24 05:23:06 +01:00
Laurent Destailleur
9315b5552f Update index.php 2024-03-24 02:41:13 +01:00
Laurent Destailleur
66c01b8e85 Merge branch 'develop' into addLayoutForWebsite 2024-03-24 02:28:07 +01:00
Laurent Destailleur
364ae616b0 Update index.php 2024-03-24 02:27:46 +01:00
Laurent Destailleur
a5fec9f06f Merge branch 'develop' into PhanTypeInvalidRightOperandOfNumericOp 2024-03-23 20:44:54 +01:00
Laurent Destailleur
b3358312d3 Fix bad use of array 2024-03-23 20:44:20 +01:00
MDW
47a4c65591 Fix type with cast/idate/phpdoc 2024-03-22 09:52:32 +01:00
MDW
69081c727e Add typing to fetchAll 2024-03-22 09:52:22 +01:00
Laurent Destailleur
7b0177a84d Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
Lamrani Abdel
f96f4fd3e9 Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into addLayoutForWebsite 2024-03-21 17:36:17 +01:00
Lamrani Abdel
e5d79df30d Fix errors in 2024-03-21 16:25:43 +01:00
Lamrani Abdel
b5903da492 NEW preview exemple page in website when create page 2024-03-21 03:47:16 +01:00
MDW
6dc3fc94f7 Fix PhanTypeMismatchReturnNullable by setting return variable in 'else' case 2024-03-20 21:58:42 +01:00
MDW
0538db7468 Fix PhanTypeSuspiciousStringExpression 2024-03-19 02:44:01 +01:00
MDW
fd9d48faac Fix phpstan CommonObject->fields - notnull is optional field 2024-03-19 00:32:00 +01:00
Laurent Destailleur
06ae1deb1b Fix better error message when using bad character_set_client 2024-03-18 17:27:06 +01:00
Laurent Destailleur
84f02105fb Fix phan warning 2024-03-16 21:40:40 +01:00
Laurent Destailleur
65d2f6af6d Debug v20 2024-03-16 14:20:23 +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
MDW
23785393a3 Add csslist to json keys 2024-03-15 03:55:52 +01:00
MDW
e16b73288a Fix PhanTypeMismatchPropertyDefault 2024-03-15 03:55:48 +01:00
Laurent Destailleur
b23e627a05 Merge pull request #28800 from mdeweerd/PhanPluginDuplicateConditionalUnnecessa
Fix & enable PhanPluginDuplicateConditionalUnnecessary "X ? Y : Y"
2024-03-15 00:27:58 +01:00
Laurent Destailleur
390f18f557 FIX #yogosha20932 2024-03-14 22:06:43 +01:00
MDW
de10bcc7d5 Fix PhanPluginDuplicateConditionalUnnecessary "X ? Y : Y" (Simplify) 2024-03-14 19:47:26 +01:00
Laurent Destailleur
7264621c75 Fix: the line "file generated" must appears once. 2024-03-14 13:55:47 +01:00
Laurent Destailleur
2b187c4b30 Fix: the line "file generated" must appears once. 2024-03-14 13:45:55 +01:00
Laurent Destailleur
b51be11171 Clean code 2024-03-14 13:39:24 +01:00
Laurent Destailleur
5399e3aef5 Debug import website template 2024-03-14 12:59:35 +01:00
Laurent Destailleur
fb85f17ef4 FIX: Better error management in loading a website template 2024-03-14 12:09:35 +01:00
Laurent Destailleur
07fe0f6cd0 NEW: Module Website: Can link/unlink translation between web pages 2024-03-14 10:29:36 +01:00
MDW
04282f9c5f Fix PhanTypeInvalidUnaryOperandIncOrDec by typing $error
# Fix PhanTypeInvalidUnaryOperandIncOrDec by typing $error

For some strange reason phan determined that $error was not an int, so forced the
typing to fix the PhanTypeInvalidUnaryOperandIncOrDec notifications in this
file
2024-03-13 16:45:14 +01:00
MDW
7b1155dec0 Qual: Fix childtablesoncascade phpdoc 2024-03-12 14:02:10 +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
MDW
8cf93e2cb3 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:40:37 +01:00
Laurent Destailleur
f32bf4b3a7 Fix join -> implode 2024-03-11 12:38:21 +01:00
Laurent Destailleur
8d7911f484 Fix compatibility with USF. 2024-03-11 10:32:15 +01:00
MDW
3d0a85608b Qual: Fix and enable alias deprecation detection (#28716)
* Qual: Ignore some false positives for deprecated functions

# Qual: Ignore some false positives for deprecated functions

The Phan Deprecation Plugin for internal functions has mixed up some
mail functions and lists them as deprecated, this ignores that

* Qual: Enable detection and fixing of internal deprecations

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Replace 'join' with 'implode'

* Qual: Update codespell lines ignore list after format

# Qual: Update codespell lines ignore list after forma

Done using latest library, so also adds some exceptions that are needed
in the future;

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-08 21:34:18 +01:00
Frédéric FRANCE
14ffa142aa fix precommit and clean code (#28651)
* fix precommit

* fix precommit

* fix missing include

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* clean code

* clean code
2024-03-07 16:57:29 +01:00
Laurent Destailleur
8abb608c17 Fix fetchAll for website pages 2024-03-05 00:42:44 +01:00
Laurent Destailleur
c3db669a10 Fix fetchAll for website pages 2024-03-05 00:38:20 +01:00
Laurent Destailleur
94a82716b7 Fix regression with GETPOSTINT 2024-03-05 00:26:24 +01:00
Laurent Destailleur
ce010a54c7 Clean code and prepare a more powerfull phpunit check for sql forging. 2024-03-05 00:22:12 +01:00
Frédéric FRANCE
fba15178eb all initAsSpecimen return int (#28577)
* all initAsSpecimen return int

* all initAsSpecimen return int

* all initAsSpecimen return int
2024-03-02 16:38:35 +01:00
lamrani abdelwadoud
262f5ffd21 change assignement type to int (#28561) 2024-03-01 20:48:14 +01:00
Laurent Destailleur
04c560faa4 Fix warning 2024-03-01 01:52:40 +01:00
Laurent Destailleur
ef224a7a45 Clean code 2024-02-29 16:48:52 +01:00