diff --git a/src/StreamWrapper/Foxml.php b/src/StreamWrapper/Foxml.php index b128ccd..4a4d834 100644 --- a/src/StreamWrapper/Foxml.php +++ b/src/StreamWrapper/Foxml.php @@ -135,8 +135,6 @@ public function getDescription() { return 'FOXML object/datastream storage dereferencing.'; } - - /** * {@inheritDoc} * phpcs:disable Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps diff --git a/src/StreamWrapper/NotWritableTrait.php b/src/StreamWrapper/NotWritableTrait.php index 6e489d4..6a57ba6 100644 --- a/src/StreamWrapper/NotWritableTrait.php +++ b/src/StreamWrapper/NotWritableTrait.php @@ -6,7 +6,6 @@ * Helper trait to mask writability from file modes. */ trait NotWritableTrait { - protected const WRITE_MASK = ~0o222; /** * Apply mask to suppress writability being reported. @@ -22,7 +21,7 @@ protected static function applyMask(array|false $result) : array|false { return FALSE; } - $result[2] = ($result['mode'] &= static::WRITE_MASK); + $result[2] = ($result['mode'] &= !0o222); return $result; }