diff --git a/lib/ContextStackTrait.php b/lib/ContextStackTrait.php index 4e15bd4..e8e07b3 100644 --- a/lib/ContextStackTrait.php +++ b/lib/ContextStackTrait.php @@ -92,6 +92,8 @@ trait ContextStackTrait * This allows you to safely modify the elementMap, contextUri or * namespaceMap. After you're done, you can restore the old data again * with popContext. + * + * @return void */ public function pushContext() { @@ -105,6 +107,8 @@ public function pushContext() /** * Restore the previous "context". + * + * @return void */ public function popContext() { diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index ea694a9..662dc7e 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -75,16 +75,6 @@ parameters: count: 1 path: lib/Reader.php - - - message: "#^Method Sabre\\\\Xml\\\\Reader\\:\\:popContext\\(\\) has no return type specified\\.$#" - count: 1 - path: lib/Reader.php - - - - message: "#^Method Sabre\\\\Xml\\\\Reader\\:\\:pushContext\\(\\) has no return type specified\\.$#" - count: 1 - path: lib/Reader.php - - message: "#^Property Sabre\\\\Xml\\\\Reader\\:\\:\\$classMap type has no value type specified in iterable type array\\.$#" count: 1 @@ -155,16 +145,6 @@ parameters: count: 1 path: lib/Service.php - - - message: "#^Method Sabre\\\\Xml\\\\Writer\\:\\:popContext\\(\\) has no return type specified\\.$#" - count: 1 - path: lib/Writer.php - - - - message: "#^Method Sabre\\\\Xml\\\\Writer\\:\\:pushContext\\(\\) has no return type specified\\.$#" - count: 1 - path: lib/Writer.php - - message: "#^Method Sabre\\\\Xml\\\\Writer\\:\\:write\\(\\) has no return type specified\\.$#" count: 1