In modules/nuxt_multi_cache_purger/src/Plugin/Purge/Purger/NuxtMultiCachePurger.php::invalidateItems() the check

if ($purged !== NULL) { is always true since $purged is a bool here.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

milanbombschliip created an issue. See original summary.

milanbombschliip’s picture

Title: invalidateItems() always returns succeed » invalidateItems() always returns SUCCEEDED

milanbombschliip’s picture

In https://git.drupalcode.org/project/nuxt_multi_cache/-/merge_requests/5 I now pushed phpstan to level 4. This is the level which detects bugs like the one in this ticket. I also fixed all other issues reported by phpstan.

milanbombschliip’s picture

Assigned: milanbombschliip » Unassigned
Status: Active » Needs review