htdocs/compta/paiement/class/paiement.class.php 115 PHPDoc type array<int, float> of property Paiement::$multicurrency_tx is not covariant with PHPDoc type float of overridden property CommonObject::$multicurrency_tx.
htdocs/compta/paiement/class/paiement.class.php 120 PHPDoc type array<int, string> of property Paiement::$multicurrency_code is not covariant with PHPDoc type string of overridden property CommonObject::$multicurrency_code.
* Update commande.class.php
htdocs/commande/class/commande.class.php 248 PHPDoc type int of property Commande::$user_valid is not covariant with PHPDoc type User of overridden property CommonObject::$user_valid.
* Update facture.class.php
htdocs/compta/facture/class/facture.class.php 129 PHPDoc type int of property Facture::$user_valid is not covariant with PHPDoc type User of overridden property CommonObject::$user_valid.
* Fix: Add parentheses to fix expression
# Fix: Add parentheses to fix expression
The priority of == is higher than bitwise & which is not what the
expression supposes.
(See https://www.php.net/manual/en/language.operators.precedence.php).
Detected as 'PhanPluginDuplicateExpressionBinaryOp: Both sides of the binary operator == are the same: 1' because of '1 == 1'
* Fix: Add parentheses to fix expression
# Fix: Add parentheses to fix expression
The priority of == is higher than bitwise & which is not what the
expression supposes.
(See https://www.php.net/manual/en/language.operators.precedence.php).
Detected as 'PhanPluginDuplicateExpressionBinaryOp: Both sides of the binary operator == are the same: 1' because of '1 == 1'
* Fix: Add parentheses to fix expression
# Fix: Add parentheses to fix expression
The priority of == is higher than bitwise & which is not what the
expression supposes.
(See https://www.php.net/manual/en/language.operators.precedence.php).
Detected as 'PhanPluginDuplicateExpressionBinaryOp: Both sides of the binary operator == are the same: 1' because of '1 == 1'
htdocs/commande/class/commande.class.php 538 Property CommonObject::$origin (string) does not accept $this(Commande).
htdocs/commande/class/commande.class.php 675 Property CommonObject::$origin (string) does not accept $this(Commande).
htdocs/compta/facture/class/facture.class.php 2859 Property CommonObject::$origin (string) does not accept $this(Facture).
htdocs/compta/facture/class/facture.class.php 3378 Property CommonObject::$origin (string) does not accept $this(Facture).
htdocs/compta/facture/class/facture.class.php 3696 Property CommonObject::$origin (string) does not accept $this(Facture).
htdocs/expedition/class/expedition.class.php 1245 Property CommonObject::$origin (string) does not accept null.
htdocs/expedition/class/expedition.class.php 1438 Property CommonObject::$origin (string) does not accept null.
htdocs/expedition/class/expedition.class.php 2326 Property CommonObject::$origin (string) does not accept $this(Expedition).
htdocs/expedition/class/expedition.class.php 2487 Property CommonObject::$origin (string) does not accept $this(Expedition).
htdocs/fourn/class/fournisseur.commande.class.php 1283 Property CommonObject::$origin (string) does not accept $this(CommandeFournisseur).
htdocs/fourn/class/fournisseur.commande.class.php 2278 Property CommonObject::$origin (string) does not accept $this(CommandeFournisseur).
htdocs/fourn/class/fournisseur.facture.class.php 1858 Property CommonObject::$origin (string) does not accept $this(FactureFournisseur).
htdocs/fourn/class/fournisseur.facture.class.php 1999 Property CommonObject::$origin (string) does not accept $this(FactureFournisseur).
htdocs/fourn/commande/dispatch.php 435 Property CommonObject::$origin (string) does not accept CommandeFournisseur.
htdocs/fourn/commande/dispatch.php 482 Property CommonObject::$origin (string) does not accept CommandeFournisseur.
htdocs/fourn/commande/dispatch.php 489 Property CommonObject::$origin (string) does not accept CommandeFournisseur.
htdocs/reception/class/reception.class.php 582 Property CommonObject::$origin (string) does not accept $this(Reception).
htdocs/reception/class/reception.class.php 1081 Property CommonObject::$origin (string) does not accept null.
htdocs/reception/class/reception.class.php 1674 Property CommonObject::$origin (string) does not accept $this(Reception).
htdocs/reception/class/reception.class.php 1833 Property CommonObject::$origin (string) does not accept $this(Reception).
htdocs/reception/class/reception.class.php 1967 Property CommonObject::$origin (string) does not accept $this(Reception).
htdocs/takepos/invoice.php 332 Property CommonObject::$origin (string) does not accept Facture.
htdocs/takepos/invoice.php 336 Property CommonObject::$origin (string) does not accept Facture.
htdocs/resource/class/dolresource.class.php 723 Property Dolresource::$busy (int) does not accept string.
htdocs/resource/class/dolresource.class.php 726 Property Dolresource::$mandatory (int) does not accept string.
* qual: phpstan for htdocs/compta/tva/class/paymentvat.class.php
htdocs/compta/tva/class/paymentvat.class.php 540 Property CommonObject::$tms (int) does not accept string.
* qual: phpstan - various "$enabled (int) does not accept bool."
htdocs/core/boxes/box_actions.php 54 Property box_actions::$enabled (int) does not accept bool.
htdocs/core/boxes/box_actions_future.php 54 Property box_actions_future::$enabled (int) does not accept bool.
htdocs/core/boxes/box_activity.php 53 Property box_activity::$enabled (int) does not accept string.
* qual: phpstan for htdocs/core/boxes/box_activity.php
htdocs/core/boxes/box_activity.php 53 Property box_activity::$enabled (int) does not accept string.
* qual: phpstan for htdocs/core/modules/modTakePos.class.php
htdocs/core/modules/modTakePos.class.php 284 Property Societe::$code_client (string) does not accept int.
htdocs/core/modules/modTakePos.class.php 285 Property Societe::$code_fournisseur (string) does not accept int.
* Qual: Add test to validate module_names
# Qual: Add test to validate module_names
This ensures that all explitly tested module names appear in the reference list.
Displays messages when the module_name is deprecated
* Update CodingPhpTest.php
* Update CodingPhpTest.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>