It seems like $style defined by parameter $style on line 34 can be null; however, Box\Spout\Writer\Common\Entity\Row::setStyle() does not accept null, maybe add an additional type check?
It seems like you allow that null is being passed for a parameter, however the
function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):
functionnotNullable(stdClass$x){}// UnsafefunctionwithoutCheck(stdClass$x=null){notNullable($x);}// Safe - Alternative 1: Adding Additional Type-CheckfunctionwithCheck(stdClass$x=null){if($xinstanceofstdClass){notNullable($x);}}// Safe - Alternative 2: Changing ParameterfunctionwithNonNullableParam(stdClass$x){notNullable($x);}
It seems like $style defined by parameter $style on line 92 can be null; however, Box\Spout\Writer\Common\...owManager::applyStyle() does not accept null, maybe add an additional type check?
It seems like you allow that null is being passed for a parameter, however the
function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):
functionnotNullable(stdClass$x){}// UnsafefunctionwithoutCheck(stdClass$x=null){notNullable($x);}// Safe - Alternative 1: Adding Additional Type-CheckfunctionwithCheck(stdClass$x=null){if($xinstanceofstdClass){notNullable($x);}}// Safe - Alternative 2: Changing ParameterfunctionwithNonNullableParam(stdClass$x){notNullable($x);}
Loading history...
95
96
return $this;
97
}
98
99
/**
100
* @param Cell $cell
101
* @return Row
102
*/
103
90
public function addCell(Cell $cell)
104
{
105
90
$this->cells[] = $cell;
106
107
90
return $this;
108
}
109
110
/**
111
* Returns whether a row has cells
112
*
113
* @return bool
114
*/
115
71
public function hasCells()
116
{
117
71
return $this->rowManager->hasCells($this);
118
}
119
120
/**
121
* Detect whether this row is considered empty.
122
* An empty row has either no cells at all - or only empty cells
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):