17
17
abstract class BaseRelation
18
18
{
19
19
public function __construct (
20
- private ? string $ propertyName = null ,
21
- private ? string $ targetClassName = null ,
20
+ private string $ propertyName ,
21
+ private string $ targetClassName ,
22
22
private ?string $ targetPropertyName = null ,
23
23
private bool $ isSelfReferencing = false ,
24
24
private bool $ mapInverseRelation = true ,
@@ -27,16 +27,8 @@ public function __construct(
27
27
private ?string $ customReturnType = null ,
28
28
) {
29
29
// @TODO - triggers are tmp, do not merge w/ them in place.
30
- if (null === $ this ->propertyName ) {
31
- trigger_deprecation ('symfony/maker-bundle ' , '0.0.0 ' , 'No null propertyName ' );
32
- }
33
-
34
- if (null === $ this ->targetClassName ) {
35
- trigger_deprecation ('symfony/maker-bundle ' , '0.0.0 ' , 'No null targetClassName ' );
36
- }
37
-
38
30
if (null === $ this ->targetPropertyName ) {
39
- trigger_deprecation ('symfony/maker-bundle ' , '0.0.0 ' , 'No null targetClassName ' );
31
+ trigger_deprecation ('symfony/maker-bundle ' , '0.0.0 ' , 'No null target property name ' );
40
32
}
41
33
}
42
34
0 commit comments