Deprecation: #95320 - Various method arguments in Authentication objects
See forge#95320
Description
The following methods of the classes
\TYPO3\
and
\TYPO3\
have their
first argument been marked as deprecated:
Abstract
User Authentication->write UC () Abstract
User Authentication->unpack_ uc () Backend
User Authentication->backend Check Login ()
The following method has its third argument marked as deprecated:
Backend
User Authentication->is In Web Mount ()
Impact
Calling these methods with an explicit argument of the deprecated
arguments given will trigger a PHP
E_
error.
Affected installations
TYPO3 installations with custom extensions calling these methods with the deprecated arguments which is highly unlikely.
Migration
Call
Abstract
without a
method argument. If you need to explicitly set a custom UC value
which is not
Abstract
, you can set this via
Abstract
in the
line before.
Call
Abstract
without an
method argument. If you need to explicitly set a custom UC value
which is not
Abstract
, you can set this via
Abstract
in the
line before.
Call
Backend
without
an argument but wrap this call in a
try
if
you need the old behavior and want to avoid a deprecation
message.
Call
Backend
without the
third argument and check for the return value of being
null
which is the equivalent of the expected
Runtime
being
thrown when the third argument was set to
true
.