mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	DX: mark some functions as pure
This commit is contained in:
		| @@ -32,6 +32,7 @@ interface ChillEntityRenderInterface | ||||
|      * ``` | ||||
|      * | ||||
|      * @param T $entity | ||||
|      * @phpstan-pure | ||||
|      */ | ||||
|     public function renderBox($entity, array $options): string; | ||||
|  | ||||
| @@ -41,11 +42,14 @@ interface ChillEntityRenderInterface | ||||
|      * Example: returning the name of a person. | ||||
|      * | ||||
|      * @param T $entity | ||||
|      * @phpstan-pure | ||||
|      */ | ||||
|     public function renderString($entity, array $options): string; | ||||
|  | ||||
|     /** | ||||
|      * Return true if the class support this object for the given options. | ||||
|      * | ||||
|      * @phpstan-pure | ||||
|      */ | ||||
|     public function supports(object $entity, array $options): bool; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user