Commit Graph

18 Commits

Author SHA1 Message Date
MDW
b53d322f1b Add exception for PhanTypeInvalidRightOperandOfAdd to baseline because issue to handle later 2024-03-22 09:52:34 +01:00
MDW
6bfdc4655f Disable ignores phan's baseline.txt (fixed) 2024-03-20 21:58:43 +01:00
MDW
7a4f5ec4f8 Qual: Enable some low occurence notifications 2024-03-17 20:12:27 +01:00
Laurent Destailleur
7930226c0b Merge branch 'develop' into qual/no_PhanTypeMismatchPropertyProbablyReal_exceptions 2024-03-16 21:37:43 +01:00
Laurent Destailleur
75fae0f27d Merge branch 'develop' into fix/PhanTypeMismatchReturn 2024-03-16 16:08:08 +01:00
MDW
cb55fb0864 Remove PhanTypeMismatchPropertyProbablyReal exceptions in baseline 2024-03-16 14:56:55 +01:00
MDW
ee97747eb6 Qual: Update phan baseline with issue we're not fixing now 2024-03-16 13:52:53 +01:00
MDW
7b53202f74 Qual: Enable detection of use of DeprecatedFunctions 2024-03-16 13:27:52 +01:00
MDW
8a83388905 Qual: Enable several phan notifications 2024-03-16 00:00:25 +01:00
Laurent Destailleur
1a722fa436 Merge branch 'develop' into fix/PhanTypeMismatchPropertyProbablyReal 2024-03-15 15:07:35 +01:00
MDW
ec6786ece3 Detect PhanTypeMismatchPropertyProbablyReal 2024-03-15 10:12:52 +01:00
Laurent Destailleur
470e68829d Merge branch 'develop' into fix/PhanTypeInvalidUnaryOperandNumeric 2024-03-15 10:03:50 +01:00
MDW
69be3bbca6 Fix PhanTypeInvalidUnaryOperandNumeric & remove from exceptions
# Fix PhanTypeInvalidUnaryOperandNumeric & remove from exceptions

Fix by casting result of date() or by adding typing hints.

(This notification indicates a unary '-' or similar is performed
on a value that may not be a number).
2024-03-14 19:39:49 +01:00
MDW
49416784ce Fix PhanPluginSuspiciousParamPosition 2024-03-14 19:39:29 +01:00
MDW
8f7fb3fac9 Qual: No more exception for PhanPluginDuplicateIfCondition 2024-03-12 19:16:44 +01:00
MDW
dbfb1180ee Qual: Fix PhanPluginDuplicateIfStatements & remove exceptions (#28749)
# Qual: Fix PhanPluginDuplicateIfStatements & remove exceptions

Fix occurences of PhanPluginDuplicateIfStatements which are if statements where the
consecutive branches execute the same code, making it useles to test the condition
2024-03-11 12:58:51 +01:00
MDW
826d72d04b Qual: Reduce phan baseline (thanks to 'fixes') (#28715)
# Qual: Reduce phan baseline (thanks to 'fixes')

The number of phan exceptions has been reduced, the baseline is updated
accordingly.
2024-03-08 21:25:15 +01:00
MDW
8655d5a86b QUAL Use phan to help detect new issues (#27706)
* Qual: Add phan flow

- Add phan configuration (config, baseline, stubs);
- Add github action;
- Update apstats.php.

* Add directives to ignore false phan notices

* Qual: Add typing hints for extrafields TPL files

# Qual: Add typing hints for extrafields TPL files

Add typing hints for phan on view files

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-21 18:14:29 +01:00