mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
N°8017 - Security - dependabot - Symfony's VarDumper vulnerable to un… (#731)
Upgrade all Symfony components to last security fix (~6.4.0)
This commit is contained in:
@@ -48,7 +48,7 @@ final class WorkflowExtension extends AbstractExtension
|
||||
/**
|
||||
* Returns true if the transition is enabled.
|
||||
*/
|
||||
public function canTransition(object $subject, string $transitionName, string $name = null): bool
|
||||
public function canTransition(object $subject, string $transitionName, ?string $name = null): bool
|
||||
{
|
||||
return $this->workflowRegistry->get($subject, $name)->can($subject, $transitionName);
|
||||
}
|
||||
@@ -58,12 +58,12 @@ final class WorkflowExtension extends AbstractExtension
|
||||
*
|
||||
* @return Transition[]
|
||||
*/
|
||||
public function getEnabledTransitions(object $subject, string $name = null): array
|
||||
public function getEnabledTransitions(object $subject, ?string $name = null): array
|
||||
{
|
||||
return $this->workflowRegistry->get($subject, $name)->getEnabledTransitions($subject);
|
||||
}
|
||||
|
||||
public function getEnabledTransition(object $subject, string $transition, string $name = null): ?Transition
|
||||
public function getEnabledTransition(object $subject, string $transition, ?string $name = null): ?Transition
|
||||
{
|
||||
return $this->workflowRegistry->get($subject, $name)->getEnabledTransition($subject, $transition);
|
||||
}
|
||||
@@ -71,7 +71,7 @@ final class WorkflowExtension extends AbstractExtension
|
||||
/**
|
||||
* Returns true if the place is marked.
|
||||
*/
|
||||
public function hasMarkedPlace(object $subject, string $placeName, string $name = null): bool
|
||||
public function hasMarkedPlace(object $subject, string $placeName, ?string $name = null): bool
|
||||
{
|
||||
return $this->workflowRegistry->get($subject, $name)->getMarking($subject)->has($placeName);
|
||||
}
|
||||
@@ -81,7 +81,7 @@ final class WorkflowExtension extends AbstractExtension
|
||||
*
|
||||
* @return string[]|int[]
|
||||
*/
|
||||
public function getMarkedPlaces(object $subject, bool $placesNameOnly = true, string $name = null): array
|
||||
public function getMarkedPlaces(object $subject, bool $placesNameOnly = true, ?string $name = null): array
|
||||
{
|
||||
$places = $this->workflowRegistry->get($subject, $name)->getMarking($subject)->getPlaces();
|
||||
|
||||
@@ -99,7 +99,7 @@ final class WorkflowExtension extends AbstractExtension
|
||||
* Use a string (the place name) to get place metadata
|
||||
* Use a Transition instance to get transition metadata
|
||||
*/
|
||||
public function getMetadata(object $subject, string $key, string|Transition $metadataSubject = null, string $name = null): mixed
|
||||
public function getMetadata(object $subject, string $key, string|Transition|null $metadataSubject = null, ?string $name = null): mixed
|
||||
{
|
||||
return $this
|
||||
->workflowRegistry
|
||||
@@ -109,7 +109,7 @@ final class WorkflowExtension extends AbstractExtension
|
||||
;
|
||||
}
|
||||
|
||||
public function buildTransitionBlockerList(object $subject, string $transitionName, string $name = null): TransitionBlockerList
|
||||
public function buildTransitionBlockerList(object $subject, string $transitionName, ?string $name = null): TransitionBlockerList
|
||||
{
|
||||
$workflow = $this->workflowRegistry->get($subject, $name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user