mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Force type to fix PhanNonClassMethodCall
This commit is contained in:
parent
c86c5f694a
commit
bbc086ce26
|
|
@ -730,7 +730,7 @@ class Reception extends CommonObject
|
|||
if (!empty($this->origin) && $this->origin_id > 0 && ($this->origin == 'order_supplier' || $this->origin == 'commandeFournisseur')) {
|
||||
if (empty($this->origin_object)) {
|
||||
$this->fetch_origin();
|
||||
if (empty($this->origin_object->lines)) {
|
||||
if ($this->origin_object instanceof CommonObject && empty($this->origin_object->lines)) {
|
||||
$res = $this->origin_object->fetch_lines();
|
||||
if ($this->origin_object instanceof CommandeFournisseur) {
|
||||
$this->commandeFournisseur = $this->origin_object; // deprecated
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
* Copyright (C) 2005-2017 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2020 Tobias Sekan <tobias.sekan@startmail.com>
|
||||
* 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
|
||||
|
|
@ -92,7 +93,7 @@ $hookmanager->initHooks(array('usercard', 'userperms', 'globalcard'));
|
|||
* Actions
|
||||
*/
|
||||
|
||||
$parameters = array('socid'=>$socid);
|
||||
$parameters = array('socid' => $socid);
|
||||
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||
if ($reshook < 0) {
|
||||
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||
|
|
@ -193,6 +194,8 @@ foreach ($modulesdir as $dir) {
|
|||
|
||||
$db->commit();
|
||||
|
||||
'@phan-var-force DolibarrModules[] $modules';
|
||||
|
||||
// Read permissions of edited user
|
||||
$permsuser = array();
|
||||
|
||||
|
|
@ -323,7 +326,7 @@ if (!empty($object->socid)) {
|
|||
print info_admin(showModulesExludedForExternal($modules))."\n";
|
||||
}
|
||||
|
||||
$parameters = array('permsgroupbyentity'=>$permsgroupbyentity);
|
||||
$parameters = array('permsgroupbyentity' => $permsgroupbyentity);
|
||||
$reshook = $hookmanager->executeHooks('insertExtraHeader', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||
if ($reshook < 0) {
|
||||
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user