mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +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
|
class ExtensionWasDisabled
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var Extension
|
||||||
*/
|
*/
|
||||||
protected $extension;
|
public $extension;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Extension $extension
|
* @param Extension $extension
|
||||||
|
|
|
@ -16,9 +16,9 @@ use Flarum\Extension\Extension;
|
||||||
class ExtensionWasEnabled
|
class ExtensionWasEnabled
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var Extension
|
||||||
*/
|
*/
|
||||||
protected $extension;
|
public $extension;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Extension $extension
|
* @param Extension $extension
|
||||||
|
|
|
@ -11,17 +11,19 @@
|
||||||
|
|
||||||
namespace Flarum\Event;
|
namespace Flarum\Event;
|
||||||
|
|
||||||
|
use Flarum\Extension\Extension;
|
||||||
|
|
||||||
class ExtensionWasUninstalled
|
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;
|
$this->extension = $extension;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Flarum\Extension\Extension;
|
||||||
class ExtensionWillBeDisabled
|
class ExtensionWillBeDisabled
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var Extension
|
||||||
*/
|
*/
|
||||||
public $extension;
|
public $extension;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Flarum\Extension\Extension;
|
||||||
class ExtensionWillBeEnabled
|
class ExtensionWillBeEnabled
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var Extension
|
||||||
*/
|
*/
|
||||||
public $extension;
|
public $extension;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user