Feature PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
24 Apr 2024

Summary of Changes

When typehinting $this in our layouts, we use both the full qualified name and a shortened version with an import. phpstan unfortunately does not currently understand the version with the import and thus this unifies this to the long version.

Testing Instructions

Codereview

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 24 Apr 2024
avatar Hackwar Hackwar - change - 24 Apr 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Apr 2024
Category Administration com_associations com_joomlaupdate com_users Front End Plugins
avatar HLeithner HLeithner - change - 25 Apr 2024
Labels Added: PR-5.2-dev
avatar HLeithner
HLeithner - comment - 25 Apr 2024

Then we should disable the rule in phpstan, is there an issue to check at phpstan for this feature?

avatar brianteeman
brianteeman - comment - 25 Apr 2024

Then we should disable the rule in phpstan, is there an issue to check at phpstan for this feature?

exactly

avatar Hackwar
Hackwar - comment - 25 Apr 2024
avatar pe7er pe7er - change - 17 Jul 2024
Title
[5.2] $this: Cleanup of typehints for phpstan
[6.0] $this: Cleanup of typehints for phpstan
avatar pe7er pe7er - edited - 17 Jul 2024
avatar Bodge-IT
Bodge-IT - comment - 3 Sep 2024

Issue deferred to PHPStan, change not required in Joomla. Thanks Hannes.

avatar Bodge-IT Bodge-IT - close - 3 Sep 2024
avatar Bodge-IT Bodge-IT - change - 3 Sep 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-09-03 11:24:49
Closed_By Bodge-IT
Labels Added: Feature PR-6.0-dev
Removed: PR-5.2-dev
avatar laoneo
laoneo - comment - 3 Sep 2024

Is this excluded in our PHPStan setup?

avatar Hackwar
Hackwar - comment - 3 Sep 2024

no, it isn't.

Add a Comment

Login with GitHub to post a comment