Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wbloszyk committed May 23, 2020
1 parent 2e821ed commit 75883ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Type/DateRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DateRangeType extends AbstractType
*
* @deprecated translator dependency is deprecated since sonata-project/core-bundle 3.1, to be removed in 4.0
*/
public function __construct(TranslatorInterface $translator = null)
public function __construct(?TranslatorInterface $translator = null)
{
// check if class is overloaded and notify about removing deprecated translator
if (null !== $translator && __CLASS__ !== static::class && DateRangePickerType::class !== static::class) {
Expand Down
2 changes: 1 addition & 1 deletion src/Type/DateTimeRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DateTimeRangeType extends AbstractType
*
* @deprecated translator dependency is deprecated since sonata-project/core-bundle 3.1, to be removed in 4.0
*/
public function __construct(TranslatorInterface $translator = null)
public function __construct(?TranslatorInterface $translator = null)
{
// check if class is overloaded and notify about removing deprecated translator
if (null !== $translator && __CLASS__ !== static::class && DateTimeRangePickerType::class !== static::class) {
Expand Down
2 changes: 1 addition & 1 deletion src/Type/EqualType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class EqualType extends AbstractType
*
* @deprecated translator property is deprecated since sonata-project/core-bundle 3.1, to be removed in 4.0
*/
public function __construct(TranslatorInterface $translator = null)
public function __construct(?TranslatorInterface $translator = null)
{
// check if class is overloaded and notify about removing deprecated translator
if (null !== $translator && __CLASS__ !== static::class) {
Expand Down

0 comments on commit 75883ee

Please sign in to comment.