From 7c861e19bd3f4bea7059ff49721dd693ef617395 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Sun, 14 Jul 2019 23:03:14 +0200
Subject: [PATCH] Fix NullArgument

---
 tests/lib/SimpleSAML/Utils/SystemTest.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/lib/SimpleSAML/Utils/SystemTest.php b/tests/lib/SimpleSAML/Utils/SystemTest.php
index 8b98c6300..9f73b88fd 100644
--- a/tests/lib/SimpleSAML/Utils/SystemTest.php
+++ b/tests/lib/SimpleSAML/Utils/SystemTest.php
@@ -152,11 +152,13 @@ class SystemTest extends TestCase
     /**
      * @covers \SimpleSAML\Utils\System::writeFile
      * @test
+     * @deprecated Test becomes obsolete as soon as the codebase is fully type hinted
      * @return void
      */
     public function testWriteFileInvalidArguments()
     {
         $this->expectException(\InvalidArgumentException::class);
+        /** @psalm-suppress NullArgument */
         System::writeFile(null, null, null);
     }
 
-- 
GitLab