diff --git a/src/Codeception/Module/Symfony.php b/src/Codeception/Module/Symfony.php index c228fe78..6d729c05 100644 --- a/src/Codeception/Module/Symfony.php +++ b/src/Codeception/Module/Symfony.php @@ -698,7 +698,7 @@ protected function debugResponse($url) $roles = $security->getRoles(); if ($roles instanceof Data) { - $roles = $this->extractRawRoles($roles); + $roles = $roles->getValue(); } $this->debugSection( @@ -723,22 +723,6 @@ protected function debugResponse($url) } } - /** - * @param Data $data - * @return array - */ - private function extractRawRoles(Data $data): array - { - if ($this->dataRevealsValue($data)) { - $roles = $data->getValue(); - } else { - $raw = $data->getRawData(); - $roles = isset($raw[1]) ? $raw[1] : []; - } - - return $roles; - } - /** * Returns a list of recognized domain names. * @@ -785,18 +769,6 @@ public function rebootClientKernel() } } - /** - * Public API from Data changed from Symfony 3.2 to 3.3. - * - * @param Data $data - * - * @return bool - */ - private function dataRevealsValue(Data $data): bool - { - return method_exists($data, 'getValue'); - } - /** * Returns list of the possible kernel classes based on the module configuration *