Named parameter

Named parameters were introduced in PHP 8. Parameters without default values must now appear PRIOR to optional parameters.
This commit is contained in:
Stoneshaq 2021-06-08 19:17:25 +10:00 committed by GitHub
parent 04c303477a
commit 4e4566859b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ abstract class DocumentTemplate extends Base
* @return void
*/
public function __construct(
$type, $item = false, $document, $documentTemplate = '', $logo = '', $backgroundColor = '',
$type, $document, $item = false, $documentTemplate = '', $logo = '', $backgroundColor = '',
bool $hideFooter = false, bool $hideCompanyLogo = false, bool $hideCompanyDetails = false,
bool $hideCompanyName = false, bool $hideCompanyAddress = false, bool $hideCompanyTaxNumber = false, bool $hideCompanyPhone = false, bool $hideCompanyEmail = false, bool $hideContactInfo = false,
bool $hideContactName = false, bool $hideContactAddress = false, bool $hideContactTaxNumber = false, bool $hideContactPhone = false, bool $hideContactEmail = false,