fixed issues with $extension visibility and typehinting

This commit is contained in:
Daniël Klabbers 2017-02-11 21:14:44 +01:00
parent 7e8982c6e7
commit 87b06a675d
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;