mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Merge pull request #1124 from Luceos/master
fixed issues with $extension visibility and typehinting
This commit is contained in:
commit
98616a2f6f
|
@ -16,9 +16,9 @@ use Flarum\Extension\Extension;
|
|||
class ExtensionWasDisabled
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
* @var Extension
|
||||
*/
|
||||
protected $extension;
|
||||
public $extension;
|
||||
|
||||
/**
|
||||
* @param Extension $extension
|
||||
|
|
|
@ -16,9 +16,9 @@ use Flarum\Extension\Extension;
|
|||
class ExtensionWasEnabled
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
* @var Extension
|
||||
*/
|
||||
protected $extension;
|
||||
public $extension;
|
||||
|
||||
/**
|
||||
* @param Extension $extension
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ use Flarum\Extension\Extension;
|
|||
class ExtensionWillBeDisabled
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
* @var Extension
|
||||
*/
|
||||
public $extension;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ use Flarum\Extension\Extension;
|
|||
class ExtensionWillBeEnabled
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
* @var Extension
|
||||
*/
|
||||
public $extension;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user