aboutsummaryrefslogtreecommitdiffstats
path: root/lib/unstable
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-12-12 17:37:14 -0100
committerMaxence Lange <maxence@artificial-owl.com>2024-12-13 11:08:20 -0100
commit815991741d2001f7610047ef9627283037c1beec (patch)
tree6250d5998b5f4d1c13f00606c8a7634d12ed1886 /lib/unstable
parent96586ba7095b3d955b093bc34d696654faa80252 (diff)
downloadnextcloud-server-feature/noid/config-lexicon.tar.gz
nextcloud-server-feature/noid/config-lexicon.zip
fix(lexicon): renaming and minor fixesfeature/noid/config-lexicon
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/unstable')
-rw-r--r--lib/unstable/Config/Lexicon/ConfigLexiconEntry.php2
-rw-r--r--lib/unstable/Config/Lexicon/ConfigLexiconStrictness.php10
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/unstable/Config/Lexicon/ConfigLexiconEntry.php b/lib/unstable/Config/Lexicon/ConfigLexiconEntry.php
index 68787f9000c..e6c6579881d 100644
--- a/lib/unstable/Config/Lexicon/ConfigLexiconEntry.php
+++ b/lib/unstable/Config/Lexicon/ConfigLexiconEntry.php
@@ -174,7 +174,7 @@ class ConfigLexiconEntry {
* @experimental 31.0.0
*/
public function isFlagged(int $flag): bool {
- return (bool)($flag & $this->getFlags());
+ return (($flag & $this->getFlags()) === $flag);
}
/**
diff --git a/lib/unstable/Config/Lexicon/ConfigLexiconStrictness.php b/lib/unstable/Config/Lexicon/ConfigLexiconStrictness.php
index fda0adb0037..a6490675c8a 100644
--- a/lib/unstable/Config/Lexicon/ConfigLexiconStrictness.php
+++ b/lib/unstable/Config/Lexicon/ConfigLexiconStrictness.php
@@ -18,13 +18,13 @@ namespace NCU\Config\Lexicon;
*
* @experimental 31.0.0
*/
-enum ConfigLexiconStrictness: int {
+enum ConfigLexiconStrictness {
/** @experimental 31.0.0 */
- case IGNORE = 0; // fully ignore
+ case IGNORE; // fully ignore
/** @experimental 31.0.0 */
- case NOTICE = 2; // ignore and report
+ case NOTICE; // ignore and report
/** @experimental 31.0.0 */
- case WARNING = 3; // silently block (returns $default) and report
+ case WARNING; // silently block (returns $default) and report
/** @experimental 31.0.0 */
- case EXCEPTION = 5; // block (throws exception) and report
+ case EXCEPTION; // block (throws exception) and report
}