diff --git a/src/Constants.php b/src/Constants.php index 1edd1018..be1ce73d 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -17,11 +17,11 @@ class Constants /** * The current release version */ - public const VERSION = '2.2.0'; + public const VERSION = '2.2.1'; /** * The current release: major * 10000 + minor * 100 + patch */ - public const VERSION_ID = 20200; + public const VERSION_ID = 20201; /** * The software name */ diff --git a/src/Form/ContractByUserForm.php b/src/Form/ContractByUserForm.php index 69ea570b..e945d213 100644 --- a/src/Form/ContractByUserForm.php +++ b/src/Form/ContractByUserForm.php @@ -16,7 +16,7 @@ use Symfony\Component\Form\AbstractType; */ final class ContractByUserForm extends AbstractType { - public function getParent(): ?string + public function getParent(): string { return YearByUserForm::class; } diff --git a/src/Twig/SecurityPolicy/InvoicePolicy.php b/src/Twig/SecurityPolicy/InvoicePolicy.php index cf1471ff..ed459228 100644 --- a/src/Twig/SecurityPolicy/InvoicePolicy.php +++ b/src/Twig/SecurityPolicy/InvoicePolicy.php @@ -169,6 +169,10 @@ final class InvoicePolicy implements SecurityPolicyInterface // vendor/symfony/twig-bridge/Extension/AssetExtension.php 'asset', + // ================================================================= + // vendor/symfony/twig-bridge/Extension/SecurityExtension.php + 'is_granted', + // ================================================================= // Twig/RuntimeExtensions.php 'qr_code_data_uri', @@ -176,6 +180,12 @@ final class InvoicePolicy implements SecurityPolicyInterface // ================================================================= // Twig/Configuration.php 'config', + + // ================================================================= + // Twig/LocaleFormatExtensions.php + 'create_date', + 'month_names', + 'locale_format', ] )); }