Skip to content

Commit 5ec896f

Browse files
committed
Declare tentative return types for ext/phar
1 parent 0224cc8 commit 5ec896f

File tree

3 files changed

+251
-231
lines changed

3 files changed

+251
-231
lines changed

ext/phar/phar_object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5023,7 +5023,7 @@ PHP_METHOD(PharFileInfo, decompress)
50235023
zend_throw_exception_ex(spl_ce_BadMethodCallException, 0,
50245024
"Phar error: Cannot decompress %s-compressed file \"%s\" in phar \"%s\": %s", compression_type, entry_obj->entry->filename, entry_obj->entry->phar->fname, error);
50255025
efree(error);
5026-
return;
5026+
RETURN_THROWS();
50275027
}
50285028

50295029
entry_obj->entry->old_flags = entry_obj->entry->flags;

0 commit comments

Comments
 (0)