Skip to content

Commit

Permalink
Eliminate Misleading Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman committed Oct 14, 2024
1 parent dae5077 commit 333cb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Reader/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private function readEnding(): string
{
$meta = stream_get_meta_data($this->fileHandle);
// Phpstan incorrectly flags following line for Php8.2-, corrected in 8.3
$filename = $meta['uri']; //@phpstan-ignore-line
$filename = $meta['uri'];

Check failure on line 174 in src/PhpSpreadsheet/Reader/Html.php

View workflow job for this annotation

GitHub Actions / phpstan

Offset 'uri' does not exist on array{timed_out: bool, blocked: bool, eof: bool, unread_bytes: int, stream_type: string, wrapper_type: string, wrapper_data: mixed, mode: string, ...}.

$size = (int) filesize($filename);
if ($size === 0) {
Expand Down

0 comments on commit 333cb21

Please sign in to comment.