Release 2.34 (#5465)
* fix timing issue in timesheet edit form with deactivated rounding * bump packages * only show update messages for newer plugin versions * replace deprecated method * remove internal from API * remove technical terms from translation * prevent calls to internal symfony methods * helper method to flag entry as modified * support meta-fields in weekly-hourse view * fix running timesheets were deleted in weekly-hourse
This commit is contained in:
@@ -63,12 +63,12 @@ final class ThemeExtension implements RuntimeExtensionInterface
|
||||
|
||||
public function getJavascriptTranslations(): array
|
||||
{
|
||||
$event = new ThemeJavascriptTranslationsEvent(); // @phpstan-ignore new.deprecated
|
||||
$event = new ThemeJavascriptTranslationsEvent(); // @phpstan-ignore new.deprecatedClass
|
||||
|
||||
$this->eventDispatcher->dispatch($event);
|
||||
|
||||
$all = [];
|
||||
foreach ($event->getTranslations() as $key => $translation) {
|
||||
foreach ($event->getTranslations() as $key => $translation) { // @phpstan-ignore method.deprecatedClass
|
||||
$all[$key] = $this->translator->trans($translation[0], [], $translation[1]);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,11 +34,11 @@ final class ForbiddenPolicy implements SecurityPolicyInterface
|
||||
* @param array<string> $forbiddenFunctions
|
||||
*/
|
||||
public function __construct(
|
||||
private array $forbiddenTags = [],
|
||||
private array $forbiddenFilters = [],
|
||||
private readonly array $forbiddenTags = [],
|
||||
private readonly array $forbiddenFilters = [],
|
||||
array $forbiddenMethods = [],
|
||||
private array $forbiddenProperties = [],
|
||||
private array $forbiddenFunctions = []
|
||||
private readonly array $forbiddenProperties = [],
|
||||
private readonly array $forbiddenFunctions = []
|
||||
)
|
||||
{
|
||||
$this->forbiddenMethods = [];
|
||||
@@ -70,7 +70,7 @@ final class ForbiddenPolicy implements SecurityPolicyInterface
|
||||
|
||||
public function checkMethodAllowed($obj, $method): void
|
||||
{
|
||||
if ($obj instanceof Template || $obj instanceof Markup) {
|
||||
if ($obj instanceof Template || $obj instanceof Markup) { // @phpstan-ignore instanceof.internalClass
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ final class InvoicePolicy implements SecurityPolicyInterface
|
||||
|
||||
public function checkMethodAllowed($obj, $method): void
|
||||
{
|
||||
if ($obj instanceof Template || $obj instanceof Markup || $obj instanceof UnicodeString) {
|
||||
if ($obj instanceof Template || $obj instanceof Markup || $obj instanceof UnicodeString) { // @phpstan-ignore instanceof.internalClass
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user