Skip to content

Commit

Permalink
Use real class for CMSApplication type hint on killMessage(). Apparen…
Browse files Browse the repository at this point in the history
…tly class aliases don't work for type hints.
  • Loading branch information
cheesegrits committed Feb 8, 2018
1 parent 2ec0d94 commit 7216e27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/fabrik/fabrik/Helpers/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use JMail;
use JMailHelper;
use JModelLegacy;
use Joomla\CMS\Application\CMSApplication;
use JPath;
use JSession;
use JTable;
Expand Down Expand Up @@ -2657,12 +2658,12 @@ public static function inFormProcess()
/**
* Remove messages from JApplicationCMS
*
* @param JApplicationCMS $app Application to kill messages from
* @param CMSApplication $app Application to kill messages from
* @param string $type Message type e.g. 'warning', 'error'
*
* @return array Remaining messages.
*/
public static function killMessage(\JApplicationSite $app, $type)
public static function killMessage(CMSApplication $app, $type)
{
$appReflection = new \ReflectionClass(get_class($app));
$_messageQueue = $appReflection->getProperty('_messageQueue');
Expand Down

0 comments on commit 7216e27

Please sign in to comment.