"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Neos.Flow/Classes/Reflection/ParameterReflection.php" between
flow-development-collection-7.1.0.tar.gz and flow-development-collection-7.1.1.tar.gz

About: TYPO3 Flow is a web application platform enabling developers creating fast, reliable and complex web solutions ("the next level of PHP programming"; old name "FLOW3").

ParameterReflection.php  (flow-development-collection-7.1.0):ParameterReflection.php  (flow-development-collection-7.1.1)
skipping to change at line 46 skipping to change at line 46
} }
/** /**
* Returns the parameter class * Returns the parameter class
* *
* @return ClassReflection The parameter class * @return ClassReflection The parameter class
*/ */
public function getClass() public function getClass()
{ {
try { try {
$class = parent::getClass(); $class = parent::getType();
} catch (\Exception $exception) { } catch (\Exception $exception) {
return null; return null;
} }
return is_object($class) ? new ClassReflection($class->getName()) : null ; return is_object($class) && !$class->isBuiltin() ? new ClassReflection($ class->getName()) : null;
} }
/** /**
* @return string|null The name of a builtin type (e.g. string, int) if it w as declared for the parameter (scalar type declaration), null otherwise * @return string|null The name of a builtin type (e.g. string, int) if it w as declared for the parameter (scalar type declaration), null otherwise
*/ */
public function getBuiltinType() public function getBuiltinType()
{ {
$type = $this->getType(); $type = $this->getType();
if (!$type instanceof \ReflectionNamedType) { if (!$type instanceof \ReflectionNamedType) {
return null; return null;
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)