Skip to content

Commit d2f944b

Browse files
committed
Declare tentative return types for ext/phar
1 parent b9f3f35 commit d2f944b

File tree

3 files changed

+270
-248
lines changed

3 files changed

+270
-248
lines changed

ext/phar/phar_object.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4947,8 +4947,8 @@ PHP_METHOD(PharFileInfo, compress)
49474947
entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_BZ2;
49484948
break;
49494949
default:
4950-
zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, \
4951-
"Unknown compression type specified"); \
4950+
zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Unknown compression type specified");
4951+
RETURN_THROWS();
49524952
}
49534953

49544954
entry_obj->entry->phar->is_modified = 1;
@@ -5038,7 +5038,7 @@ PHP_METHOD(PharFileInfo, decompress)
50385038
zend_throw_exception_ex(spl_ce_BadMethodCallException, 0,
50395039
"Phar error: Cannot decompress %s-compressed file \"%s\" in phar \"%s\": %s", compression_type, entry_obj->entry->filename, entry_obj->entry->phar->fname, error);
50405040
efree(error);
5041-
return;
5041+
RETURN_THROWS();
50425042
}
50435043

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

0 commit comments

Comments
 (0)