dolibarr/htdocs/core/lib
MDW 42bb4fbf3e
Qual: Enable & fix or ignore Invalid DimOffset (#31176)
* Qual: Enable & fix or ignore Invalid DimOffset

# Qual: Enable & fix or ignore Invalid DimOffset

The Invalid DimOffset notices occur when array keys are defined and
the index used is not amongst the known array keys.

This PR enables these notices and fixes array definitions when needed,
or ignores the notices locally if it's a false positive, or in the
baseline.txt when it does not seem to be a false positive so that
it can be fixed later

* Nullable object typing in function signature not ok for 7.0/8.4

Can't user '?User' as argument type for PHP7.0 which is required by PHP8.4.
Therefore, removing the typing specification in the function definition

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-29 21:52:31 +02:00
..
accounting.lib.php fix phpstan (#31169) 2024-09-28 11:14:59 +02:00
admin.lib.php WIP Captcha 2024-09-27 19:31:28 +02:00
agenda.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
ajax.lib.php fix phpstan (#31102) 2024-09-25 22:21:31 +02:00
asset.lib.php
bank.lib.php Qual: Enable & fix or ignore Invalid DimOffset (#31176) 2024-09-29 21:52:31 +02:00
barcode.lib.php Clean code for barcode generators 2024-05-22 15:49:33 +02:00
categories.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
company.lib.php Qual: Enable & fix or ignore Invalid DimOffset (#31176) 2024-09-29 21:52:31 +02:00
contact.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
contract.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
cron.lib.php
customreports.lib.php fix ignored phpstan (most of expects string, int given) (#30649) 2024-09-05 16:05:37 +02:00
date.lib.php Qual: Enable & fix or ignore Invalid DimOffset (#31176) 2024-09-29 21:52:31 +02:00
doc.lib.php
doleditor.lib.php
donation.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
ecm.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
emailing.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
emaillayout.lib.php NEW Preview product list when we choose model layout Commerce (#30185) 2024-08-15 17:39:15 +02:00
eventorganization.lib.php
expedition.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
expensereport.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
fichinter.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
files.lib.php Qual: Fix (propal|facture|contrat|fichinter)/card, commonobject, files.lib/card_presend.tpl (#31087) 2024-09-26 23:01:02 +02:00
fiscalyear.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
format_cards.lib.php
fourn.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
ftp.lib.php Fix $port type to ssh2_connect, ftp_ssl_connect, ftp_connect with cast 2024-03-19 02:59:12 +01:00
functions_ch.lib.php Qual: Fix multiple phan notifications (#31151) 2024-09-28 12:09:35 +02:00
functions_fi.lib.php Update functions_fi.lib.php (#29819) 2024-06-03 17:29:36 +02:00
functions.lib.php Qual: Enable & fix or ignore Invalid DimOffset (#31176) 2024-09-29 21:52:31 +02:00
functions2.lib.php Qual: Enable & fix or ignore Invalid DimOffset (#31176) 2024-09-29 21:52:31 +02:00
functionsnumtoword.lib.php Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp (#30557) 2024-08-15 16:57:02 +02:00
geturl.lib.php Clean code 2024-03-20 00:08:30 +01:00
holiday.lib.php
hrm.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
images.lib.php fix phpstan (#31181) 2024-09-29 21:49:52 +02:00
import.lib.php
invoice.lib.php Clean code to swith to code_compta_client 2024-08-14 16:51:53 +02:00
invoice2.lib.php fix phpstan expects values (#30324) 2024-07-09 19:28:59 +02:00
json.lib.php Fix phan warning 2024-07-13 18:35:03 +02:00
ldap.lib.php fix phpstan (#31183) 2024-09-29 13:07:21 +02:00
loan.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
mailmanspip.lib.php Debug v20 2024-04-03 12:25:06 +02:00
member.lib.php Improve typing for member_prepare_head() return value 2024-03-27 10:22:51 +01:00
memory.lib.php fix ignored phpstan (#30645) 2024-08-16 20:13:02 +02:00
modulebuilder.lib.php fix ignored phpstan (most of expects string, int given) (#30649) 2024-09-05 16:05:37 +02:00
multicurrency.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
oauth.lib.php Enabled the generic oauth2 handler 2024-08-13 20:26:49 +02:00
openid_connect.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
order.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
parsemd.lib.php Better management of MD file with style HTML tags 2024-03-24 03:23:07 +01:00
payments.lib.php fix ignored phpstan (most of expects string, int given) (#30649) 2024-09-05 16:05:37 +02:00
pdf.lib.php Qual: Enable & fix or ignore Invalid DimOffset (#31176) 2024-09-29 21:52:31 +02:00
phpsessionindb.lib.php fix checkFunctionArgumentTypes (#30234) 2024-07-03 02:30:53 +02:00
prelevement.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
price.lib.php Qual: Fix spelling/update .pre-commit configuration (versions) (#30546) 2024-08-07 01:20:43 +02:00
product.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
profid.lib.php Qual: Enable & fix or ignore Invalid DimOffset (#31176) 2024-09-29 21:52:31 +02:00
project.lib.php Clean ECM module to prepare access by external users 2024-09-26 02:48:16 +02:00
propal.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
public.lib.php DOS protection is per week instead of month 2024-09-28 11:19:54 +02:00
receiptprinter.lib.php
reception.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
report.lib.php
resource.lib.php
salaries.lib.php
security.lib.php Fix: Protection to avoid fatal error on password_hash with null char. 2024-09-24 15:21:34 +02:00
security2.lib.php Qual: Enable Phan Simplify rule and fix notices (#30537) 2024-08-07 03:05:02 +02:00
sendings.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
signature.lib.php Look and feel v21 enhancement on smartphone 2024-09-25 02:35:56 +02:00
socialnetwork.lib.php Fix tabs must appears only on setup of module 2024-08-13 23:34:21 +02:00
stock.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
supplier_proposal.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
takepos.lib.php
tax.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
ticket.lib.php fix ignored phpstan (most of expects string, int given) (#30649) 2024-09-05 16:05:37 +02:00
treeview.lib.php Merge 2024-04-27 03:32:22 +02:00
trip.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
usergroups.lib.php Qual: Fix multiple phan notifications (#31151) 2024-09-28 12:09:35 +02:00
vat.lib.php Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086) 2024-09-23 00:37:30 +02:00
website.lib.php NEW display when click on NEWS templateDrop down for model (#30332) 2024-09-17 15:37:34 +02:00
website2.lib.php fix-seo-meta-tags-sanitization (#30924) 2024-09-12 21:35:38 +02:00
ws.lib.php fix ignored phpstan (most of expects string, int given) (#30649) 2024-09-05 16:05:37 +02:00
xcal.lib.php Typo 2024-07-08 16:51:15 +02:00