Compare commits
No commits in common. "564a05a1d4b3eb8d6ddd44cfbc8ab7054ef57915" and "0ba4fe3a51ef9752e83945b2c4cd39008d58367c" have entirely different histories.
564a05a1d4
...
0ba4fe3a51
@ -1,6 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Notes\Attribute;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_ALL)]
|
||||
class Ignore implements \Notes\Attribute {}
|
@ -3,7 +3,6 @@
|
||||
namespace Notes;
|
||||
|
||||
use Kash\HandleCacheTrait;
|
||||
use Notes\Attribute\Ignore;
|
||||
use Psr\SimpleCache\CacheInterface;
|
||||
use Reflector, ReflectionClass, ReflectionProperty, ReflectionMethod, ReflectionUnionType, ReflectionNamedType, ReflectionParameter;
|
||||
|
||||
@ -168,7 +167,7 @@ class ObjectReflection {
|
||||
|
||||
$current = [
|
||||
'name' => $method->getName(),
|
||||
'type' => $method->hasReturnType() && $method->getReturnType() instanceof \ReflectionNamedType ? $method->getReturnType()->getName() : false,
|
||||
'type' => $method->hasReturnType() ? $method->getReturnType()->getName() : false,
|
||||
'constructor' => $method->isConstructor(),
|
||||
'destructor' => $method->isDestructor(),
|
||||
'parameters' => $parameters,
|
||||
@ -188,7 +187,7 @@ class ObjectReflection {
|
||||
|
||||
protected function ignoreElementAnnotation($tags) : bool
|
||||
{
|
||||
return [] !== array_filter($tags, fn($e) => ( $e['object'] ?? null ) instanceof Ignore);
|
||||
return in_array('IGNORE', array_map('strtoupper', array_column($tags, 'tag') ));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user