2
0
forked from Wavyzz/dolibarr

Fix phpstan

This commit is contained in:
Laurent Destailleur
2024-02-08 14:11:54 +01:00
parent 94cd823a7c
commit 4ce325fadb
10 changed files with 40 additions and 22 deletions

View File

@@ -240,13 +240,13 @@ class DocumentController extends Controller
* Action method is called before html output
* can be used to manage security and change context
*
* @return void
* @return int Return integer < 0 on error, > 0 on success
*/
public function action()
{
$context = Context::getInstance();
if (!$context->controllerInstance->checkAccess()) {
return;
return -1;
}
//$context = Context::getInstance();
@@ -255,6 +255,8 @@ class DocumentController extends Controller
//$context->doNotDisplayHeaderBar=1;// hide default header
$this->init();
return 1;
}
/**