Skip to content

Commit 24b7fc6

Browse files
bpfoleycpeel
authored andcommitted
page_tally.inc: Remove unnecessary assign
if `empty($datax)`, then `$datax` must be `[]` (because `array_column()` above returns the empty array if the specified column index isn't found. Found by PHPStan 2.3's `assign.overwrite` warning
1 parent 3fa7a2a commit 24b7fc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pinc/page_tally.inc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ function get_site_tally_cumulative_or_incremental(
519519
// if no data was returned from the SELECT, create an empty dataset
520520
if (empty($datax)) {
521521
// set arrays to empty before populating them
522-
$datax = $datay1 = [];
522+
$datay1 = [];
523523
$datay2 = null;
524524

525525
// don't go past the current date

0 commit comments

Comments
 (0)