mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-08 01:53:03 +01:00
Qual: Fix phan/phpstan notices in class files (part 3) (#31578)
* fix phpstan in conf class (#31630) * fix phpstan * fix phan * Fix merge * Qual: Avoid notification with typing hint * Qual: Fix notices link.class * Qual: Fix notices link..socialneetworkmanager.class and DoliDb->DoliDB * Qual: Fix notices for link..utils.class * Qual: Fix notices for db classes * Update translate.class.php * Update translate.class.php --------- Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com> Co-authored-by: Laurent Destailleur <eldy@users.sourceforge.net> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2023 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2024 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
|
||||
@@ -65,7 +66,7 @@ class DolQueryCollector extends DataCollector implements Renderable, AssetProvid
|
||||
$queries[] = array(
|
||||
'sql' => $query['sql'],
|
||||
'duration' => $query['duration'],
|
||||
'duration_str' => round($query['duration'] * 1000, 2),
|
||||
'duration_str' => round((float) $query['duration'] * 1000, 2),
|
||||
'memory' => $query['memory_usage'],
|
||||
'is_success' => $query['is_success'],
|
||||
'error_code' => $query['error_code'],
|
||||
|
||||
Reference in New Issue
Block a user