Skip to content

[4.3] Mark deprecation in DelegatingPsrLogger#39224

Merged
HLeithner merged 1 commit intojoomla:4.3-devfrom
nikosdion:architecture/j43-psrlogger-prep
Nov 22, 2022
Merged

[4.3] Mark deprecation in DelegatingPsrLogger#39224
HLeithner merged 1 commit intojoomla:4.3-devfrom
nikosdion:architecture/j43-psrlogger-prep

Conversation

@nikosdion
Copy link
Copy Markdown
Contributor

See #39134 (comment)

Summary of Changes

\Joomla\CMS\Log\DelegatingPsrLogger was marked @internal and a deprecation notice information developers it will be marked final has been added.

Testing Instructions

None. This PR only changes the DocBlock.

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org: PR 61

@wilsonge wilsonge changed the title Mark deprecation in DelegatingPsrLogger [4.3] Mark deprecation in DelegatingPsrLogger Nov 16, 2022
@wilsonge
Copy link
Copy Markdown
Contributor

I'm probably being overly pedantic here but isn't this better off as a note rather than deprecated. Because people will still be able to init the class and it's not deprecated (in the short term anyhow) for that purpose?

@nikosdion
Copy link
Copy Markdown
Contributor Author

The idea is that if someone does Whatever extends \Joomla\CMS\Log\DelegatingPsrLogger we want them to get the big strikethrough and warning in their IDE, hinting them that something is changing. Hopefully they will look at the core class and figure out what the deprecation is.

In the PR for 5.0 the deprecation is removed. The class is made final and the @internal mark is kept.

@HLeithner HLeithner merged commit 1fc0330 into joomla:4.3-dev Nov 22, 2022
@HLeithner
Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants