diff --git a/src/Context/Argument/PageObjectArgumentResolver.php b/src/Context/Argument/PageObjectArgumentResolver.php
index <HASH>..<HASH> 100644
--- a/src/Context/Argument/PageObjectArgumentResolver.php
+++ b/src/Context/Argument/PageObjectArgumentResolver.php
@@ -85,6 +85,6 @@ class PageObjectArgumentResolver implements ArgumentResolver
      */
     private function getClassName(\ReflectionParameter $parameter)
     {
-        return $parameter->getClass() ? $parameter->getClass()->getName() : null;
+        return $parameter->getClass() ? $parameter->getClass()->name : null;
     }
 }
Fix a problem discovered by scrutinizer