coding-standard icon indicating copy to clipboard operation
coding-standard copied to clipboard

RequireNullSafeObjectOperator unhandled case

Open mabar opened this issue 3 years ago • 0 comments

Hello, I just found condition that I believe could be simplified to nullsafe call automatically.

From:

if ($this->paginator !== null) {
	$this->paginator->setItemsPerPage($this->itemsPerPage);
}

To:

$this->paginator?->setItemsPerPage($this->itemsPerPage);

Feel free to close the issue, I really appreciate how amazing this package already is and don't want throw more work at you. I may share more ideas otherwise :'D

mabar avatar Dec 30 '21 22:12 mabar