Compare commits

..

No commits in common. "564a05a1d4b3eb8d6ddd44cfbc8ab7054ef57915" and "aca093dd979f607db504dc319db4b6e4edbbfb53" have entirely different histories.

2 changed files with 1 additions and 8 deletions

View File

@ -1,6 +0,0 @@
<?php
namespace Notes\Attribute;
#[\Attribute(\Attribute::TARGET_ALL)]
class Ignore implements \Notes\Attribute {}

View File

@ -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;
@ -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') ));
}