mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 07:35:34 +08:00
add cs fixer and PHPStan and activate it (build 436)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Custom\Annotation;
|
||||
|
||||
@@ -11,7 +12,6 @@ use ZM\Annotation\Interfaces\CustomAnnotation;
|
||||
* Class CustomAnnotation
|
||||
* @Annotation
|
||||
* @Target("ALL")
|
||||
* @package Custom\Annotation
|
||||
*/
|
||||
class Example extends AnnotationBase implements CustomAnnotation
|
||||
{
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php /** @noinspection PhpFullyQualifiedNameUsageInspection */ #plain
|
||||
<?php
|
||||
|
||||
//这里写你的全局函数
|
||||
/**
|
||||
* @param callable $func
|
||||
* @param string $name
|
||||
* @noinspection PhpUnused
|
||||
*/
|
||||
function pgo(callable $func, $name = "default") {
|
||||
\ZM\Utils\CoroutinePool::go($func, $name);
|
||||
declare(strict_types=1);
|
||||
|
||||
use ZM\Utils\CoroutinePool;
|
||||
|
||||
function pgo(callable $func, string $name = 'default')
|
||||
{
|
||||
CoroutinePool::go($func, $name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user