summaryrefslogtreecommitdiff
path: root/ext/exif/exif.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-11-08 23:29:12 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2019-11-11 14:54:55 +0100
commit27e83d0fb87c04b61441fb77e963dd4e14ad187e (patch)
tree1b35b21c48c54f353e643d29dd2306d8e1ba084a /ext/exif/exif.stub.php
parent2804ea612779b89d3c62d974eb35783dd31f7dee (diff)
downloadphp-git-27e83d0fb87c04b61441fb77e963dd4e14ad187e.tar.gz
Add union return types for function stubs
Diffstat (limited to 'ext/exif/exif.stub.php')
-rw-r--r--ext/exif/exif.stub.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/ext/exif/exif.stub.php b/ext/exif/exif.stub.php
index a878c3c3ff..3fe2e72f66 100644
--- a/ext/exif/exif.stub.php
+++ b/ext/exif/exif.stub.php
@@ -1,13 +1,9 @@
<?php
-/** @return string|false */
-function exif_tagname(int $index) {}
+function exif_tagname(int $index): string|false {}
-/** @return array|false */
-function exif_read_data($filename, ?string $sections_needed = null, bool $sub_arrays = false, bool $read_thumbnail = false) {}
+function exif_read_data($filename, ?string $sections_needed = null, bool $sub_arrays = false, bool $read_thumbnail = false): array|false {}
-/** @return string|false */
-function exif_thumbnail($filename, &$width = null, &$height = null, &$imagetype = null) {}
+function exif_thumbnail($filename, &$width = null, &$height = null, &$imagetype = null): string|false {}
-/** @return int|false */
-function exif_imagetype(string $filename) {}
+function exif_imagetype(string $filename): int|false {}