Skip to content

Commit bad07ec

Browse files
committed
Fix BC issue in phpDoc Reflection library
The used phpDocumentor library DocBlockReflection contained an BC break that broke this component. The patch was applied in the recent released v4.3.4 version. But since it is unclear how long this issue existed it is not possible to exclude a certain version. Therefor also `\RuntimeExpception` needs to be catched. The BC break is possibly caused by a change in the TypeResolver library used by the DocBlockReflection which is now supporting the more populair generics notation for arrays.
1 parent 7aba9cf commit bad07ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ private function getDocBlockFromProperty($class, $property)
212212
return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty->getDeclaringClass()));
213213
} catch (\InvalidArgumentException $e) {
214214
return null;
215+
} catch (\RuntimeException $e) {
216+
return null;
215217
}
216218
}
217219

@@ -257,6 +259,8 @@ private function getDocBlockFromMethod($class, $ucFirstProperty, $type)
257259
return [$this->docBlockFactory->create($reflectionMethod, $this->contextFactory->createFromReflector($reflectionMethod)), $prefix];
258260
} catch (\InvalidArgumentException $e) {
259261
return null;
262+
} catch (\RuntimeException $e) {
263+
return null;
260264
}
261265
}
262266
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy