Compare commits
	
		
			2 Commits
		
	
	
		
			aca093dd97
			...
			564a05a1d4
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					564a05a1d4 | ||
| 
						 | 
					1accac94c0 | 
							
								
								
									
										6
									
								
								src/Attribute/Ignore.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/Attribute/Ignore.php
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace Notes\Attribute;
 | 
			
		||||
 | 
			
		||||
#[\Attribute(\Attribute::TARGET_ALL)]
 | 
			
		||||
class Ignore implements \Notes\Attribute {}
 | 
			
		||||
@ -3,6 +3,7 @@
 | 
			
		||||
namespace Notes;
 | 
			
		||||
 | 
			
		||||
use Kash\HandleCacheTrait;
 | 
			
		||||
use Notes\Attribute\Ignore;
 | 
			
		||||
use Psr\SimpleCache\CacheInterface;
 | 
			
		||||
use Reflector, ReflectionClass, ReflectionProperty, ReflectionMethod, ReflectionUnionType, ReflectionNamedType, ReflectionParameter;
 | 
			
		||||
 | 
			
		||||
@ -187,7 +188,7 @@ class ObjectReflection {
 | 
			
		||||
 | 
			
		||||
    protected function ignoreElementAnnotation($tags) : bool
 | 
			
		||||
    {
 | 
			
		||||
        return in_array('IGNORE', array_map('strtoupper', array_column($tags, 'tag') ));
 | 
			
		||||
        return [] !== array_filter($tags, fn($e) => ( $e['object'] ?? null ) instanceof Ignore);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user