build : phpstan level 2

master
RealET 2 months ago
parent 92f1eb1c95
commit b9cc6e2285

@ -7,8 +7,8 @@ if (!defined('_ECRIRE_INC_VERSION')) {
/**
* Prendre la date courante et ajuste à un j+1, 00:00:00
* @param str $date
* @return str date
* @param string $date
* @return string date
**/
function full_calendar_jplusun($date) {
$date = new DateTime($date);

@ -893,7 +893,7 @@ function http_calendrier_ics_titre($annee, $mois, $jour, $script, $finurl = '',
// https://code.spip.net/@http_calendrier_sans_date
function http_calendrier_sans_date($annee, $mois, $evenements) {
$r = $evenements[0 + ($annee . $mois . '00')];
$r = $evenements[0 + intval(($annee . $mois . '00'))];
if (!$r) { return '';
}
$res = "\n<div class='calendrier-arial10 calendrier-titre'>" .

@ -570,6 +570,16 @@ parameters:
count: 7
path: inclure/agenda_programmation_fonctions.php
-
message: "#^Call to method setFontBold\\(\\) on an unknown class Box\\\\Spout\\\\Writer\\\\Common\\\\Creator\\\\Style\\\\StyleBuilder\\.$#"
count: 1
path: inclure/comptetraduction_export_fonctions.php
-
message: "#^Call to method setFontName\\(\\) on an unknown class Box\\\\Spout\\\\Writer\\\\Common\\\\Creator\\\\Style\\\\StyleBuilder\\.$#"
count: 1
path: inclure/comptetraduction_export_fonctions.php
-
message: "#^Call to static method createRowFromArray\\(\\) on an unknown class Box\\\\Spout\\\\Writer\\\\Common\\\\Creator\\\\WriterEntityFactory\\.$#"
count: 2
@ -715,6 +725,16 @@ parameters:
count: 1
path: soyezcreateurs_administrations.php
-
message: "#^Access to property \\$texte on an unknown class Texte\\.$#"
count: 4
path: soyezcreateurs_fonctions.php
-
message: "#^Access to property \\$type on an unknown class Texte\\.$#"
count: 4
path: soyezcreateurs_fonctions.php
-
message: "#^Function _T not found\\.$#"
count: 28
@ -850,6 +870,21 @@ parameters:
count: 2
path: soyezcreateurs_fonctions.php
-
message: "#^Trying to invoke 'balise_modele'\\|'balise_modele_dist' but it's not a callable\\.$#"
count: 1
path: soyezcreateurs_fonctions.php
-
message: "#^Access to property \\$texte on an unknown class Texte\\.$#"
count: 4
path: soyezcreateurs_options.php
-
message: "#^Access to property \\$type on an unknown class Texte\\.$#"
count: 4
path: soyezcreateurs_options.php
-
message: "#^Function _request not found\\.$#"
count: 5
@ -875,6 +910,11 @@ parameters:
count: 2
path: soyezcreateurs_options.php
-
message: "#^Trying to invoke 'balise_modele'\\|'balise_modele_dist' but it's not a callable\\.$#"
count: 1
path: soyezcreateurs_options.php
-
message: "#^Function find_in_path not found\\.$#"
count: 1

@ -7,6 +7,6 @@ parameters:
excludePaths:
analyseAndScan:
- lang
level: 1
level: 2
bootstrapFiles:
- phpstan-constants.php

Loading…
Cancel
Save