Merge pull request #1124 from Luceos/master

fixed issues with $extension visibility and typehinting
This commit is contained in:
Franz Liedke 2017-02-12 00:53:50 +01:00 committed by GitHub
commit 98616a2f6f
5 changed files with 12 additions and 10 deletions

View File

@ -16,9 +16,9 @@ use Flarum\Extension\Extension;
class ExtensionWasDisabled
{
/**
* @var string
* @var Extension
*/
protected $extension;
public $extension;
/**
* @param Extension $extension

View File

@ -16,9 +16,9 @@ use Flarum\Extension\Extension;
class ExtensionWasEnabled
{
/**
* @var string
* @var Extension
*/
protected $extension;
public $extension;
/**
* @param Extension $extension

View File

@ -11,17 +11,19 @@
namespace Flarum\Event;
use Flarum\Extension\Extension;
class ExtensionWasUninstalled
{
/**
* @var string
* @var Extension
*/
protected $extension;
public $extension;
/**
* @param string $extension
* @param Extension $extension
*/
public function __construct($extension)
public function __construct(Extension $extension)
{
$this->extension = $extension;
}

View File

@ -16,7 +16,7 @@ use Flarum\Extension\Extension;
class ExtensionWillBeDisabled
{
/**
* @var string
* @var Extension
*/
public $extension;

View File

@ -16,7 +16,7 @@ use Flarum\Extension\Extension;
class ExtensionWillBeEnabled
{
/**
* @var string
* @var Extension
*/
public $extension;