Skip to content

Commit

Permalink
Removed phpstan ignores and resolved other phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oojacoboo committed Dec 8, 2021
1 parent 32ab619 commit 3f3d7ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions src/Propel/Generator/Builder/DataModelBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,16 +450,10 @@ public function setTable(Table $table)
/**
* Returns the current Table object.
*
* @throws \BadMethodCallException
*
* @return \Propel\Generator\Model\Table
*/
public function getTable()
public function getTable(): Table
{
if ($this->table === null) {
throw new BadMethodCallException('No $table set to return.');
}

return $this->table;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Propel/Runtime/Parser/CsvParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ public function toCSV($array, $isList = false, $includeHeading = true)
*/
public function toArray($data, $rootKey = null, $isList = false, $includeHeading = true)
{
$rows = explode($this->lineTerminator, $data); // @phpstan-ignore-line
$rows = explode($this->lineTerminator, $data);
if ($includeHeading) {
$heading = array_shift($rows);
$keys = explode($this->delimiter, $heading); // @phpstan-ignore-line
$keys = explode($this->delimiter, $heading);
} else {
$keys = range(0, count($this->getColumns($rows[0])) - 1);
}
Expand Down

0 comments on commit 3f3d7ed

Please sign in to comment.