strict to phpstan-level-4

This commit is contained in:
crazywhalecc
2022-04-03 01:47:38 +08:00
parent 0bab2e74b0
commit 3451434997
19 changed files with 67 additions and 59 deletions

View File

@@ -4,9 +4,12 @@ declare(strict_types=1);
namespace ZM\Annotation;
use ArrayIterator;
use Closure;
use IteratorAggregate;
use Traversable;
abstract class AnnotationBase
abstract class AnnotationBase implements IteratorAggregate
{
public $method = '';
@@ -35,4 +38,9 @@ abstract class AnnotationBase
}
return $str;
}
public function getIterator(): Traversable
{
return new ArrayIterator($this);
}
}