diff --git a/src/Comparator.php b/src/Comparator.php
index <HASH>..<HASH> 100644
--- a/src/Comparator.php
+++ b/src/Comparator.php
@@ -45,7 +45,9 @@ class Comparator
         }, $definedApi->getAllClasses());
 
         foreach ($definedApiClassNames as $apiClassName) {
-            $changelog = $this->examineClass($changelog, $oldApi->reflect($apiClassName), $newApi);
+            /** @var ReflectionClass $oldClass */
+            $oldClass  = $newApi->reflect($apiClassName);
+            $changelog = $this->examineClass($changelog, $oldClass, $newApi);
         }
 
         return $changelog;
Documented `$oldClass` type, since otherwise PHPStan chokes on it