Deprecation notices wrapped in Deprecation::withNoReplacement()
are logged as NameSpace\{closure}
#10705
Closed
1 of 2 tasks
For some deprecated API we have explicitly wrapped the notice in a call to
Deprecation::withNoReplacement()
- e.g.silverstripe-framework/src/ORM/Connect/Query.php
Lines 200 to 207 in ab566b0
This results in the deprecation warning in logs appearing like so:
Instead of
{closure}
, it should say the actual method and class which are deprecated.This is made complicated however by the fact that sometimes we use
Deprecation::withNoReplacement()
to wrap the call to deprecated API instead of wrapping the notice directly. In those cases the logs already correctly identify the deprecated API.Acceptance criteria
Deprecation::withNoReplacement()
OR
PRs
The text was updated successfully, but these errors were encountered: