改名
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
@@ -27,7 +27,7 @@ abstract class BaseAnnotation extends Component
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function instance($reflect, $method = '', $annotations = [])
|
||||
public function instance(ReflectionClass $reflect, $method = '', $annotations = [])
|
||||
{
|
||||
$classMethods = $reflect->getMethods(ReflectionMethod::IS_PUBLIC);
|
||||
if (!$reflect->isInstantiable()) {
|
||||
@@ -55,7 +55,7 @@ abstract class BaseAnnotation extends Component
|
||||
* @return array
|
||||
* @throws
|
||||
*/
|
||||
protected function resolveDocComment($function, $object, $annotations, $array)
|
||||
protected function resolveDocComment(ReflectionMethod $function, $object, $annotations, $array)
|
||||
{
|
||||
$comment = $function->getDocComment();
|
||||
$array = $this->getDocCommentAnnotation($annotations, $comment);
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* Date: 2018/10/7 0007
|
||||
* Time: 2:13
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Date: 2018/3/30 0030
|
||||
* Time: 14:10
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
use Exception;
|
||||
@@ -166,9 +166,8 @@ class BaseObject implements Configure
|
||||
|
||||
/**
|
||||
* @param mixed $message
|
||||
* @param string|null $method
|
||||
* @param string|null $file
|
||||
* @throws
|
||||
* @param null $method
|
||||
* @param null $file
|
||||
*/
|
||||
public function error($message, $method = null, $file = null)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Date: 2018/3/30 0030
|
||||
* Time: 14:28
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class Component extends BaseObject
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $_events = [];
|
||||
private array $_events = [];
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Date: 2018/5/24 0024
|
||||
* Time: 11:50
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
use Exception;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Date: 2018/3/30 0030
|
||||
* Time: 14:11
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
|
||||
declare(strict_types=1);
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
@@ -9,10 +9,10 @@ use Exception;
|
||||
class Input
|
||||
{
|
||||
|
||||
private $_argv = [];
|
||||
private array $_argv = [];
|
||||
|
||||
|
||||
private $_command = '';
|
||||
private string $_command = '';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Snowflake\Abstracts;
|
||||
abstract class Listener extends Component implements IListener
|
||||
{
|
||||
|
||||
protected $trigger = '';
|
||||
protected string $trigger = '';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
@@ -16,9 +16,9 @@ abstract class Pool extends Component
|
||||
{
|
||||
|
||||
/** @var Channel[] */
|
||||
private $_items = [];
|
||||
private array $_items = [];
|
||||
|
||||
protected $max = 60;
|
||||
protected int $max = 60;
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Snowflake\Abstracts;
|
||||
|
||||
|
||||
use Snowflake\Application;
|
||||
|
||||
/**
|
||||
* Class Providers
|
||||
* @package Snowflake\Abstracts
|
||||
|
||||
Reference in New Issue
Block a user