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
This commit is contained in:
parent
49a25794f4
commit
349a657ce1
4 changed files with 9 additions and 4 deletions
2
.github/scripts/get_changed_php.sh
vendored
2
.github/scripts/get_changed_php.sh
vendored
|
|
@ -1,4 +1,4 @@
|
|||
b!/bin/bash
|
||||
#!/bin/bash
|
||||
# Copyright (C) 2025 MDW <mdeweerd@users.noreply.github.com>
|
||||
|
||||
set -euo pipefail
|
||||
|
|
|
|||
3
.github/workflows/phan.yml
vendored
3
.github/workflows/phan.yml
vendored
|
|
@ -47,8 +47,9 @@ jobs:
|
|||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.2
|
||||
php-version: 8.4
|
||||
coverage: none # disable xdebug, pcov
|
||||
extensions: ast
|
||||
tools: cs2pr:1.8.6,phan:5.5.2
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* Copyright (C) 2013 Olivier Geffroy <jeff@jeffinfo.com>
|
||||
* Copyright (C) 2013-2026 Alexandre Spangaro <alexandre@inovea-conseil.com>
|
||||
* Copyright (C) 2018-2026 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024-2026 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -593,7 +593,10 @@ class Lettering extends BookKeeping
|
|||
// Cross-fiscal-year matching is forbidden
|
||||
if (count($fiscalYearRows) > 1) {
|
||||
$periods = array_map(
|
||||
/** @param object $row */
|
||||
/**
|
||||
* @param object $row
|
||||
* @return string
|
||||
*/
|
||||
function ($row) {
|
||||
return dol_print_date($this->db->jdate($row->date_start), 'day') . ' – ' . dol_print_date($this->db->jdate($row->date_end), 'day');
|
||||
},
|
||||
|
|
|
|||
|
|
@ -367,6 +367,7 @@ class RssParser
|
|||
return -1;
|
||||
}
|
||||
|
||||
// @phan-suppress-next-line PhanDeprecatedFunctionInternal
|
||||
xml_set_object($xmlparser, $this);
|
||||
// @phan-suppress-next-line PhanUndeclaredFunctionInCallable
|
||||
xml_set_element_handler($xmlparser, 'feed_start_element', 'feed_end_element'); // @phpstan-ignore-line
|
||||
|
|
|
|||
Loading…
Reference in a new issue