diff --git a/src/Mapping/Annotation/Blameable.php b/src/Mapping/Annotation/Blameable.php index 72c5223599..5516e5d68a 100644 --- a/src/Mapping/Annotation/Blameable.php +++ b/src/Mapping/Annotation/Blameable.php @@ -45,7 +45,7 @@ public function __construct( string $on = 'update', $field = null, $value = null, - string $setterMethod = null + ?string $setterMethod = null ) { if ([] !== $data) { @trigger_error(sprintf( diff --git a/src/Mapping/Annotation/IpTraceable.php b/src/Mapping/Annotation/IpTraceable.php index 2c9c792f24..26c743c41d 100644 --- a/src/Mapping/Annotation/IpTraceable.php +++ b/src/Mapping/Annotation/IpTraceable.php @@ -45,7 +45,7 @@ public function __construct( string $on = 'update', $field = null, $value = null, - string $setterMethod = null + ?string $setterMethod = null ) { if ([] !== $data) { @trigger_error(sprintf( diff --git a/src/Mapping/Annotation/SoftDeleteable.php b/src/Mapping/Annotation/SoftDeleteable.php index f6c391f5a9..c1bed329b4 100644 --- a/src/Mapping/Annotation/SoftDeleteable.php +++ b/src/Mapping/Annotation/SoftDeleteable.php @@ -44,7 +44,7 @@ public function __construct( string $fieldName = 'deletedAt', bool $timeAware = false, bool $hardDelete = true, - string $setterMethod = null + ?string $setterMethod = null ) { if ([] !== $data) { @trigger_error(sprintf( diff --git a/src/Mapping/Annotation/Timestampable.php b/src/Mapping/Annotation/Timestampable.php index cae3eb7689..2c18a13c88 100644 --- a/src/Mapping/Annotation/Timestampable.php +++ b/src/Mapping/Annotation/Timestampable.php @@ -45,7 +45,7 @@ public function __construct( string $on = 'update', $field = null, $value = null, - string $setterMethod = null + ?string $setterMethod = null ) { if ([] !== $data) { @trigger_error(sprintf(