Skip to content

Commit 3ee1548

Browse files
Remove all "nullable-by-default-value" setters
1 parent 93f2d3b commit 3ee1548

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Mark `Symfony\Component\Workflow\Registry` as internal
8+
* Deprecate calling `Definition::setInitialPlaces()` without arguments
89

910
6.0
1011
---

Definition.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ public function getMetadataStore(): MetadataStoreInterface
7878

7979
private function setInitialPlaces(string|array $places = null)
8080
{
81+
if (1 > \func_num_args()) {
82+
trigger_deprecation('symfony/workflow', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);
83+
}
8184
if (!$places) {
8285
return;
8386
}

0 commit comments

Comments
 (0)