Skip to content

Commit

Permalink
deprecate option
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Mar 9, 2024
1 parent f256c85 commit 7e0a0e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Configuration
``use_nullable_type_declaration``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. warning:: This option is deprecated and will be removed in the next major version. Behaviour will follow default one.

Whether to add or remove ``?`` or ``|null`` to parameters with a default
``null`` value.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ protected function createConfigurationDefinition(): FixerConfigurationResolverIn
return new FixerConfigurationResolver([
(new FixerOptionBuilder('use_nullable_type_declaration', 'Whether to add or remove `?` or `|null` to parameters with a default `null` value.'))
->setAllowedTypes(['bool'])
->setDefault(true)
->setDefault(true)
->setDeprecationMessage('Behaviour will follow default one.') // @TODO remove the option on next major 4.0
->getOption(),
]);
}
Expand Down

0 comments on commit 7e0a0e2

Please sign in to comment.