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.
Methods should be visible when an object is called for easy debugging and development.
Methods were no longer picked up by IDE (PhpStorm) and now I have to open the class file and look for the available methods.
Labels |
Added:
?
|
Labels |
Added:
J4 Issue
|
Status | New | ⇒ | Expected Behaviour |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-19 04:10:24 |
Closed_By | ⇒ | franz-wohlkoenig |
Status | Expected Behaviour | ⇒ | Closed |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/21699
closed as expected Behaviour.
Not really an issue here.
Joomla\CMS\Factory::getApplication()
is annotated to return aJoomla\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 tocomposer 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.