▾ modified src/ScalewayRuntime.php +4 -3 Viewed
@@ -96,9 +96,10 @@ class ScalewayRuntime extends SymfonyRuntime 96 96 }; 97 97 } 98 98 99 - protected function resolveType ( string $type ) : mixed 99 + protected function getArgument ( \ReflectionParameter $parameter , ? string $type ) : mixed 100 100 { 101 - // SymfonyRuntime builds it from PHP globals, which never describe an Invocation. 102 - return Request :: class === $type ? $this -> request : parent :: resolveType ( $type ); 101 + // SymfonyRuntime builds it from PHP globals, which never describe an Invocation; resolveType() 102 + // would be the narrower hook but only exists from symfony/runtime 8.1. 103 + return Request :: class === $type ? $this -> request : parent :: getArgument ( $parameter , $type ); 103 104 } 104 105 }
@@ -96,9 +96,10 @@ class ScalewayRuntime extends SymfonyRuntime 96 }; 96 }; 97 } 97 } 98 98 99 - protected function resolveType ( string $type ) : mixed 99 + protected function getArgument ( \ReflectionParameter $parameter , ? string $type ) : mixed 100 { 100 { 101 - // SymfonyRuntime builds it from PHP globals, which never describe an Invocation. 101 + // SymfonyRuntime builds it from PHP globals, which never describe an Invocation; resolveType() 102 - return Request :: class === $type ? $this -> request : parent :: resolveType ( $type ); 102 + // would be the narrower hook but only exists from symfony/runtime 8.1. 103 + return Request :: class === $type ? $this -> request : parent :: getArgument ( $parameter , $type ); 103 } 104 } 104 } 105 }