Comments on: Hacking PHP’s WeakMap for Value Object D× https://withinboredom.info/2024/07/10/hacking-phps-weakmap-for-value-object-dx/ A Site About Stuff Thu, 11 Jul 2024 22:55:39 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Lars Moelleken https://withinboredom.info/2024/07/10/hacking-phps-weakmap-for-value-object-dx/#comment-274 Thu, 11 Jul 2024 22:55:39 +0000 https://withinboredom.info/?p=5286#comment-274 I tried to fix the same problem with static analysis, so you are not allowed to use value-objects in conditions: https://github.com/voku/phpstan-rules : classesNotInIfConditions

Bests Lars

]]>