{"record":{"id":"8f11c6b702b079f1","repo":"doctrine/orm","slug":"filter-s-is-not-suspended","errorCode":null,"errorMessage":"Filter '%s' is not suspended.","messagePattern":"Filter '(.+?)' is not suspended\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"src/Query/FilterCollection.php","lineNumber":167,"sourceCode":"\n        $this->setFiltersStateDirty();\n\n        return $filter;\n    }\n\n    /**\n     * Restore a disabled filter from the collection.\n     *\n     * @param string $name Name of the filter.\n     *\n     * @return SQLFilter The restored filter.\n     *\n     * @throws InvalidArgumentException If the filter does not exist.\n     */\n    public function restore(string $name): SQLFilter\n    {\n        if (! $this->isSuspended($name)) {\n            throw new InvalidArgumentException(\"Filter '\" . $name . \"' is not suspended.\");\n        }\n\n        $this->enabledFilters[$name] = $this->suspendedFilters[$name];\n        unset($this->suspendedFilters[$name]);\n\n        // Keep the enabled filters sorted for the hash\n        ksort($this->enabledFilters);\n\n        $this->setFiltersStateDirty();\n\n        return $this->enabledFilters[$name];\n    }\n\n    /**\n     * Gets an enabled filter from the collection.\n     *\n     * @throws InvalidArgumentException If the filter is not enabled.\n     */","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/doctrine/orm/blob/d9b9ff73016bf598ae07515f97289ce8074e97a5/src/Query/FilterCollection.php#L149-L185","documentation":"Error \"Filter '%s' is not suspended.\" thrown in doctrine/orm.","triggerScenarios":"Thrown at src/Query/FilterCollection.php:167 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9b9ff73016bf598ae07515f97289ce8074e97a5","analyzedAt":"2026-08-21T06:13:15.863Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}