Skip to content

Commit 73df0fe

Browse files
authored
chore: drop support for PHP 7.4 (#7076)
1 parent 2425a16 commit 73df0fe

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "Apache-2.0",
55
"minimum-stability": "stable",
66
"require": {
7-
"php": ">=7.4",
7+
"php": "^8.0",
88
"google/cloud-core": "^1.55",
99
"ramsey/uuid": "^4.2.3"
1010
},

src/Bucket.php

+4-8
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,8 @@ public function exists(array $options = [])
246246
* are `true`, `false`, `md5` and `crc32`. If true, either md5 or
247247
* crc32c will be chosen based on your platform. If false, no
248248
* validation hash will be sent. Choose either `md5` or `crc32` to
249-
* force a hash method regardless of performance implications. In
250-
* PHP versions earlier than 7.4, performance will be very
251-
* adversely impacted by using crc32c unless you install the
252-
* `crc32c` PHP extension. **Defaults to** `true`.
249+
* force a hash method regardless of performance implications.
250+
* **Defaults to** `true`.
253251
* @type int $chunkSize If provided the upload will be done in chunks.
254252
* The size must be in multiples of 262144 bytes. With chunking
255253
* you have increased reliability at the risk of higher overhead.
@@ -365,10 +363,8 @@ public function upload($data, array $options = [])
365363
* are `true`, `false`, `md5` and `crc32`. If true, either md5 or
366364
* crc32c will be chosen based on your platform. If false, no
367365
* validation hash will be sent. Choose either `md5` or `crc32` to
368-
* force a hash method regardless of performance implications. In
369-
* PHP versions earlier than 7.4, performance will be very
370-
* adversely impacted by using crc32c unless you install the
371-
* `crc32c` PHP extension. **Defaults to** `true`.ß
366+
* force a hash method regardless of performance implications.
367+
* **Defaults to** `true`.
372368
* @type string $predefinedAcl Predefined ACL to apply to the object.
373369
* Acceptable values include, `"authenticatedRead"`,
374370
* `"bucketOwnerFullControl"`, `"bucketOwnerRead"`, `"private"`,

src/StreamWrapper.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ public function __destruct()
120120
}
121121

122122
/**
123-
* Starting PHP 7.4, this is called when include/require is used on a stream.
124-
* Absence of this method presents a warning.
125-
* https://www.php.net/manual/en/migration74.incompatible.php
123+
* This is called when include/require is used on a stream.
126124
*/
127125
public function stream_set_option()
128126
{

0 commit comments

Comments
 (0)