Code
- Action::getClass()
- Action::factory()
- Action::getActionName()
- Action::exists()
- Action::getContext()
- Action::getRequest()
- Action::getOutput()
- Action::getUser()
- Action::getSkin()
- Action::getLanguage()
- Action::getTitle()
- Action::msg()
- Action::__construct()
- Action::getName()
- Action::getRestriction()
- Action::checkCanExecute()
- Action::requiresWrite()
- Action::requiresUnblock()
- Action::setHeaders()
- Action::getPageTitle()
- Action::getDescription()
- Action::addHelpLink()
- Action::show()
- Action::useTransactionalTimeLimit()
- Action::doesWrites()
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: