J4 Issue ?
avatar frogydiak
frogydiak
18 Aug 2018

Steps to reproduce the issue

As of August 18 but this issue (for me) occurs few days before right after I update (updating everyday).

Try to Factory:getApplication()->input and notice your IDE no longer knows what are the methods available with input.

This is not only happening with input but rather for most if not all object call.

Expected result

Methods should be visible when an object is called for easy debugging and development.

Actual result

Methods were no longer picked up by IDE (PhpStorm) and now I have to open the class file and look for the available methods.

avatar frogydiak frogydiak - open - 18 Aug 2018
avatar joomla-cms-bot joomla-cms-bot - change - 18 Aug 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Aug 2018
avatar brianteeman brianteeman - change - 18 Aug 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 18 Aug 2018
avatar mbabker
mbabker - comment - 19 Aug 2018

Not really an issue here. Joomla\CMS\Factory::getApplication() is annotated to return a Joomla\CMS\Application\CMSApplicationInterface object in 4.0 versus a concrete class object, and interfaces do not declare class member variables on them.

Also, blindly calling Factory::getApplication()->input in 4.0 will not always be reliable as the CLI application in the new Console package will eventually have that removed (I just need to find the time to composer update that package and address the changes), which means if that code can be executed in both CLI and web contexts it will need different handling.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2018
Status New Expected Behaviour
Closed_Date 0000-00-00 00:00:00 2018-08-19 04:10:24
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2018
Status Expected Behaviour Closed
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 19 Aug 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 19 Aug 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Aug 2018

closed as expected Behaviour.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21699.

Add a Comment

Login with GitHub to post a comment