From c9cfe4c7e9a7f0c1479ae8e9be0753b05a7e8997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 17 Oct 2023 10:29:18 +0200 Subject: [PATCH] DX: mark some functions as pure --- .../Templating/Entity/ChillEntityRenderInterface.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderInterface.php b/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderInterface.php index 9dadc4f7a..5d8bd372a 100644 --- a/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderInterface.php +++ b/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderInterface.php @@ -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; }