[Workflow] Remove DefinitionBuilder::setInitialPlace()
This commit is contained in:
parent
63f4d13be1
commit
80f5f40ca4
|
@ -60,22 +60,6 @@ class DefinitionBuilder
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Symfony 4.3. Use setInitialPlaces() instead.
|
||||
*
|
||||
* @param string $place
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setInitialPlace($place)
|
||||
{
|
||||
@trigger_error(sprintf('Calling %s::setInitialPlace() is deprecated since Symfony 4.3. Call setInitialPlaces() instead.', __CLASS__), E_USER_DEPRECATED);
|
||||
|
||||
$this->initialPlaces = $place;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string|string[]|null $initialPlaces
|
||||
*
|
||||
|
|
|
@ -9,16 +9,6 @@ use Symfony\Component\Workflow\Transition;
|
|||
|
||||
class DefinitionBuilderTest extends TestCase
|
||||
{
|
||||
/** @group legacy */
|
||||
public function testSetInitialPlace()
|
||||
{
|
||||
$builder = new DefinitionBuilder(['a', 'b']);
|
||||
$builder->setInitialPlace('b');
|
||||
$definition = $builder->build();
|
||||
|
||||
$this->assertEquals(['b'], $definition->getInitialPlaces());
|
||||
}
|
||||
|
||||
public function testSetInitialPlaces()
|
||||
{
|
||||
$builder = new DefinitionBuilder(['a', 'b']);
|
||||
|
|
Reference in New Issue