mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 01:42:16 +00:00
[!!!] Added type definitions to property types
- Request: optimized getIp method and reversed the order so proxy is always checked first.
This commit is contained in:
@@ -97,7 +97,7 @@ class EventHandler implements IEventHandler
|
||||
* All available events
|
||||
* @var array
|
||||
*/
|
||||
public static $events = [
|
||||
public static array $events = [
|
||||
self::EVENT_ALL,
|
||||
self::EVENT_INIT,
|
||||
self::EVENT_LOAD,
|
||||
@@ -120,7 +120,7 @@ class EventHandler implements IEventHandler
|
||||
* List of all registered events
|
||||
* @var array
|
||||
*/
|
||||
private $registeredEvents = [];
|
||||
private array $registeredEvents = [];
|
||||
|
||||
/**
|
||||
* Register new event
|
||||
|
||||
Reference in New Issue
Block a user