Commit graph

14 commits

Author SHA1 Message Date
Frédéric FRANCE
e746e56126
FIX: Exclude deleted files from the PHPStan/Phan changed-files CI script
get_changed_php.sh listed every file the GitHub PR-files API reports,
including ones with status "removed" — deleted files no longer exist
on disk, so passing them to phpstan/phan made the CI job fail trying
to analyse a missing path. Any PR deleting PHP files hits this, not
specific to one branch; exposed here since this PR removes 79 files.
2026-08-12 07:10:32 +02:00
MDW
ee3875eb4e
Qual: Fix french comments and improve detector (#39026)
* Qual: Generate phan specific changed php files list

# Qual: Generate phan specific changed php files list

Uses multiple parts of the Phan configuration to select and exclude files
for phan analysis.

* avoid catching special characters in regexes as indicators of french

* Qual: Translate french to english
2026-07-01 12:26:51 +02:00
MDW
7cb6f8253c
Ignore changed files as phan does to avoid PR notices (#39023)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-06-30 16:51:19 +02:00
Frédéric FRANCE
8b00cb2a61
fix CI (#38858)
* fix CI

* Update get_changed_php.sh

* Update blockedlog.class.php

* Update blockedlog.class.php
2026-06-25 21:27:35 +02:00
MDW
349a657ce1
Qual: Upgrade php version to run phan, add ast (#38143)
* Qual: Upgrade php version to run phan, add ast

* Qual: Fix PhanPluginUnknownClosureReturnType

* Fix: Correct shebang

* Qual: Ignore deprecated xml_set_object notice
2026-05-10 03:22:08 +02:00
MDW
08e5308772
FIX: avoid string + float TypeError (#37670)
* FIX: avoid string + float TypeError

# FIX: Avoid string + float TypeError

DoliDB::jdate() can return empty string which resulted in
`[php:error] [pid 1131683:tid 1131683] [client 192.168.0.254:28642] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string + float in .../htdocs/compta/bank/class/account.class.php:262`.
Cast jdate result to int where it is used in numerical comparisons or numeric expressions.

* Fix: 'forbidden_files: unbound variable'

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-30 19:53:22 +02:00
Frédéric FRANCE
6c70652d29
fix phpstan (#37660)
* fix phpstan

* Update get_changed_php.sh

* Update get_changed_php.sh

* Update document.php

* Update document.php
2026-03-30 19:13:52 +02:00
Laurent Destailleur
24a19e401f ci 2026-03-29 22:48:44 +02:00
Laurent Destailleur
11bdfb4664 Test 2026-03-29 22:38:35 +02:00
Laurent Destailleur
17d6ea321e Try 2026-03-29 21:52:54 +02:00
Laurent Destailleur
de408370e9 Try 2026-03-29 21:46:23 +02:00
Laurent Destailleur
56898b7e32 change code return 2026-03-29 21:39:07 +02:00
Laurent Destailleur
3d224b20ae Try to add a check on transifex 2026-03-29 19:04:09 +02:00
MDW
4461a9c685
FIX ci: Replace compromised tj-actions/changed-files (#33478)
* FIX: Replace compromised tj-actions/changed-files

# FIX: Replace compromised tj-actions/changed-files

See https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised .

* Add changed php file for test
2025-03-15 15:33:42 +01:00