Issue #3212891: Incorrect type declaration in docblock for class property
1 unresolved thread
Merge request reports
Activity
111 111 /** 112 112 * The result. 113 113 * 114 * @var null 114 * @var \Drupal\Core\Database\StatementInterface|null 115 115 */ 116 116 protected $result = NULL; - Comment on lines -114 to 116
I think we should remove the assignment to NULL - it's pointless - see https://3v4l.org/01XIi
And also I think we should remove the |null - all class properties are that implicitly and once this is set to a StatementInterface object it'll never not be set.
Also I think we should fix
/** * The current row. * * @var null */ protected $currentRow = NULL;
at the same time. This is array|false|null - we should note this null because we do explicitly set it to NULL in rewind().
changed this line in version 2 of the diff
added 1 commit
Please register or sign in to reply