Skip to content

PHPStan > Update baseline#13

Open
github-actions[bot] wants to merge 1 commit intodevelopfrom
phpstan-baseline
Open

PHPStan > Update baseline#13
github-actions[bot] wants to merge 1 commit intodevelopfrom
phpstan-baseline

Conversation

@github-actions
Copy link
Copy Markdown

This PR is automatically created to cleanup our baseline.

Since the last refresh of the baseline we have fixed 19 ignored errors.

Keep it up all! 💪

There are only 8653 ignored errors left 😅

@github-actions github-actions bot force-pushed the phpstan-baseline branch 3 times, most recently from dec57a5 to 1cae88e Compare February 1, 2025 12:14
@github-actions github-actions bot force-pushed the phpstan-baseline branch 3 times, most recently from e45c4a8 to 86b2e66 Compare February 19, 2025 12:16
@github-actions github-actions bot force-pushed the phpstan-baseline branch 7 times, most recently from 845c3a7 to ad1e8f0 Compare February 26, 2025 12:27
@github-actions github-actions bot force-pushed the phpstan-baseline branch 7 times, most recently from 7a2ca39 to 2a64581 Compare March 5, 2025 12:17
@github-actions github-actions bot force-pushed the phpstan-baseline branch 6 times, most recently from 20ffc95 to aee31e3 Compare October 30, 2025 12:27
@github-actions github-actions bot force-pushed the phpstan-baseline branch 4 times, most recently from 6a7c8e3 to b839009 Compare November 18, 2025 12:17
@github-actions github-actions bot force-pushed the phpstan-baseline branch 6 times, most recently from f499bbd to faf15b3 Compare November 24, 2025 12:18
hregis pushed a commit that referenced this pull request Apr 11, 2026
…7439)

* FIX: Issue Dolibarr#37425 filling of field amount_main_currency for foreign money accounts

The parameter amount_main_currency (argument #13 of addline()) was previously
filled even when the bank account was already using the company main currency.

This caused the field amount_main_currency to be populated incorrectly for
transactions that were not foreign currency operations.

The logic has been updated so that amount_main_currency is only filled when the
transaction involves a foreign currency account. For accounts already using the
company main currency, the value is now left NULL as expected.

This aligns the behavior with the intended usage of addline() and prevents
incorrect data in bank transaction records.

* FIX: Issue Dolibarr#37425 filling of field amount_main_currency for foreign money accounts
transfer.php: PhanTypeMismatchArgument: Argument 4 ($amount) is price2num((-1 * (float)($amount[$n]))) of type string but \Account::addline() takes float defined at htdocs/compta/bank/class/account.class.php:611
CI-PULL-REQUEST / phan / Run phan
Check warning on line R189
Check warning:
transfer.php: PhanTypeMismatchArgument: Argument 13 ($amount_main_currency) is $amount_main_currency_from of type ?string but \Account::addline() takes ?float defined at htdocs/compta/bank/class/account.class.php:611
CI-PULL-REQUEST / phan / Run phan

* declare dateo

* declare of variables before action script

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
hregis pushed a commit that referenced this pull request Apr 11, 2026
* FIX: Issue Dolibarr#37425 filling of field amount_main_currency for foreign money accounts

The parameter amount_main_currency (argument #13 of addline()) was previously
filled even when the bank account was already using the company main currency.

This caused the field amount_main_currency to be populated incorrectly for
transactions that were not foreign currency operations.

The logic has been updated so that amount_main_currency is only filled when the
transaction involves a foreign currency account. For accounts already using the
company main currency, the value is now left NULL as expected.

This aligns the behavior with the intended usage of addline() and prevents
incorrect data in bank transaction records.

(cherry picked from commit cdc3655)

* FIX: Issue Dolibarr#37425 filling of field amount_main_currency for foreign money accounts
transfer.php: PhanTypeMismatchArgument: Argument 4 ($amount) is price2num((-1 * (float)($amount[$n]))) of type string but \Account::addline() takes float defined at htdocs/compta/bank/class/account.class.php:611
CI-PULL-REQUEST / phan / Run phan
Check warning on line R189
Check warning:
transfer.php: PhanTypeMismatchArgument: Argument 13 ($amount_main_currency) is $amount_main_currency_from of type ?string but \Account::addline() takes ?float defined at htdocs/compta/bank/class/account.class.php:611
CI-PULL-REQUEST / phan / Run phan

(cherry picked from commit b8f222c)

* declare dateo

(cherry picked from commit 1401f74)

* declare of variables before action script

(cherry picked from commit 2b07209)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants