Bug #31042
Throwing an exception throws an exception....
100%
Description
after running the master branch intended to become RC1, I have Uncaught Exception in FLOW3 #1: Warning: current() expects parameter 1 to be array, null given in [...]Packages\Framework\TYPO3.FLOW3\Classes\Reflection\ReflectionService.php line 932
. The mentioned line is
throw new \TYPO3\FLOW3\Reflection\Exception(sprintf('Classes tagged as entity or value object must be of scope prototype, however, %s is declared as %s.', $className, current($classTagValues)), 1264103349);
In fact, the $classTagValues
variable is not set in this function.
Updated by Adrian Föder over 9 years ago
..maybe the current() invocation should be replaced with $scopeAnnotation->value
, so that the whole block should read
if ($scopeAnnotation !== NULL && $scopeAnnotation->value !== 'prototype') { throw new \TYPO3\FLOW3\Reflection\Exception(sprintf('Classes tagged as entity or value object must be of scope prototype, however, %s is declared as %s.', $className, $scopeAnnotation->value), 1264103349); }
Updated by Karsten Dambekalns over 9 years ago
- Status changed from New to Accepted
- Assignee set to Karsten Dambekalns
Updated by Mr. Hudson over 9 years ago
- Status changed from Accepted to Under Review
Patch set 1 of change I936356d0c19fafbf3051cd10a9f92d97e64c4974 has been pushed to the review server.
It is available at http://review.typo3.org/5944
Updated by Mr. Hudson over 9 years ago
Patch set 2 of change I936356d0c19fafbf3051cd10a9f92d97e64c4974 has been pushed to the review server.
It is available at http://review.typo3.org/5944
Updated by Karsten Dambekalns over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9c48618359df5e4a2d3d5e026a43adcb67944c18.