Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/auto-tag-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "main"
- "**/bugfixes"
paths:
- "setup.php"

Expand Down
2 changes: 1 addition & 1 deletion inc/appliance.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PluginPdfAppliance extends PluginPdfCommon
/**
* @param $obj (defult NULL)
**/
public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Appliance());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/cartridge.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PluginPdfCartridge extends PluginPdfCommon
/**
* @param $obj (defult NULL)
**/
public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Cartridge());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/cartridgeitem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfCartridgeItem extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new CartridgeItem());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/change.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfChange extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Change());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/change_item.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfChange_Item extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Change_Item());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/change_problem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfChange_Problem extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Change_Problem());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/change_ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfChange_Ticket extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Change_Ticket());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/changetask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfChangeTask extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new ChangeTask());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/changevalidation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfChangeValidation extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new ChangeValidation());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/common.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class PluginPdfCommon extends CommonGLPI
/**
* Constructor, should intialize $this->obj property
**/
public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
if ($obj) {
$this->obj = $obj;
Expand Down
2 changes: 1 addition & 1 deletion inc/commonitilcost.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfCommonItilCost extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new TicketCost());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/computer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfComputer extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Computer());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/computer_item.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfComputer_Item extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Computer_Item());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/computer_softwarelicense.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfComputer_SoftwareLicense extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_SoftwareLicense());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/computer_softwareversion.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfComputer_SoftwareVersion extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_SoftwareVersion());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/computerantivirus.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfComputerAntivirus extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new ComputerAntivirus());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/computervirtualmachine.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfComputerVirtualMachine extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new ComputerVirtualMachine());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/consumableitem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfConsumableItem extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new CartridgeItem());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/contract.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfContract extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Contract());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/contract_item.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfContract_Item extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Contract_Item());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/document.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfDocument extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Document());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/domain_item.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfDomain_Item extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Domain_Item());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/group.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfGroup extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Group());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/group_user.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfGroup_User extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Group_User());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/infocom.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfInfocom extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Infocom());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/item_device.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfItem_Device extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_Devices());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/item_disk.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfItem_Disk extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_Disk());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/item_knowbaseitem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfItem_Knowbaseitem extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_Disk());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/item_operatingsystem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfItem_OperatingSystem extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_OperatingSystem());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/item_problem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfItem_Problem extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_Problem());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/item_softwarelicense.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfItem_SoftwareLicense extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_SoftwareLicense());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/item_softwareversion.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfItem_SoftwareVersion extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_SoftwareVersion());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/item_ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfItem_Ticket extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Item_Ticket());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/itilfollowup.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfItilFollowup extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new ITILFollowup());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/itilsolution.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfITILSolution extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new ITILSolution());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/knowbaseitem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfKnowbaseItem extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new KnowbaseItem());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/link.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfLink extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Link());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/log.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfLog extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Log());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/monitor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfMonitor extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Monitor());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/networkequipment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfNetworkEquipment extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new NetworkEquipment());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/networkport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PluginPdfNetworkPort extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new NetworkPort());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/peripheral.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfPeripheral extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Peripheral());
}
Expand Down
2 changes: 1 addition & 1 deletion inc/phone.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PluginPdfPhone extends PluginPdfCommon
{
public static $rightname = 'plugin_pdf';

public function __construct(CommonGLPI $obj = null)
public function __construct(?CommonGLPI $obj = null)
{
$this->obj = ($obj ? $obj : new Phone());
}
Expand Down
Loading