Skip to content

Commit 6836cae

Browse files
committed
ext/phar: Adjust return types for methods that always return true
1 parent feae0ae commit 6836cae

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

ext/phar/phar_object.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ public function offsetSet($localName, $value): void {}
187187
public function offsetUnset($localName): void {}
188188

189189
/** @tentative-return-type */
190-
public function setAlias(string $alias): bool {}
190+
public function setAlias(string $alias): true {}
191191

192192
/** @tentative-return-type */
193-
public function setDefaultStub(?string $index = null, ?string $webIndex = null): bool {}
193+
public function setDefaultStub(?string $index = null, ?string $webIndex = null): true {}
194194

195195
/** @tentative-return-type */
196196
public function setMetadata(mixed $metadata): void {}

ext/phar/phar_object_arginfo.h

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)