ReviewOS

also looking at this

meemalabs/flysystem-meema

chore(deps): bump guzzlehttp/guzzle from 7.3.0 to 7.4.0

#50
Merged dependabot[bot] wants to merge dependabot/composer/guzzlehttp/guzzle-7.4.0 into main
2 files +150 -84
composer.lockmodified+118-33
Changes to composer.lock
@@ -509,24 +509,25 @@
509509 },
510510 {
511511 "name": "guzzlehttp/guzzle",
512 "version": "7.3.0",
512 "version": "7.4.0",
513513 "source": {
514514 "type": "git",
515515 "url": "https://github.com/guzzle/guzzle.git",
516 "reference": "7008573787b430c1c1f650e3722d9bba59967628"
516 "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94"
517517 },
518518 "dist": {
519519 "type": "zip",
520 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/7008573787b430c1c1f650e3722d9bba59967628",
521 "reference": "7008573787b430c1c1f650e3722d9bba59967628",
520 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/868b3571a039f0ebc11ac8f344f4080babe2cb94",
521 "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94",
522522 "shasum": ""
523523 },
524524 "require": {
525525 "ext-json": "*",
526 "guzzlehttp/promises": "^1.4",
527 "guzzlehttp/psr7": "^1.7 || ^2.0",
526 "guzzlehttp/promises": "^1.5",
527 "guzzlehttp/psr7": "^1.8.3 || ^2.1",
528528 "php": "^7.2.5 || ^8.0",
529 "psr/http-client": "^1.0"
529 "psr/http-client": "^1.0",
530 "symfony/deprecation-contracts": "^2.2"
530531 },
531532 "provide": {
532533 "psr/http-client-implementation": "1.0"
@@ -536,7 +537,7 @@
536537 "ext-curl": "*",
537538 "php-http/client-integration-tests": "^3.0",
538539 "phpunit/phpunit": "^8.5.5 || ^9.3.5",
539 "psr/log": "^1.1"
540 "psr/log": "^1.1 || ^2.0 || ^3.0"
540541 },
541542 "suggest": {
542543 "ext-curl": "Required for CURL handler support",
@@ -546,7 +547,7 @@
546547 "type": "library",
547548 "extra": {
548549 "branch-alias": {
549 "dev-master": "7.3-dev"
550 "dev-master": "7.4-dev"
550551 }
551552 },
552553 "autoload": {
@@ -562,19 +563,43 @@
562563 "MIT"
563564 ],
564565 "authors": [
566 {
567 "name": "Graham Campbell",
568 "email": "hello@gjcampbell.co.uk",
569 "homepage": "https://github.com/GrahamCampbell"
570 },
565571 {
566572 "name": "Michael Dowling",
567573 "email": "mtdowling@gmail.com",
568574 "homepage": "https://github.com/mtdowling"
569575 },
576 {
577 "name": "Jeremy Lindblom",
578 "email": "jeremeamia@gmail.com",
579 "homepage": "https://github.com/jeremeamia"
580 },
581 {
582 "name": "George Mponos",
583 "email": "gmponos@gmail.com",
584 "homepage": "https://github.com/gmponos"
585 },
586 {
587 "name": "Tobias Nyholm",
588 "email": "tobias.nyholm@gmail.com",
589 "homepage": "https://github.com/Nyholm"
590 },
570591 {
571592 "name": "Márk Sági-Kazár",
572593 "email": "mark.sagikazar@gmail.com",
573 "homepage": "https://sagikazarmark.hu"
594 "homepage": "https://github.com/sagikazarmark"
595 },
596 {
597 "name": "Tobias Schultze",
598 "email": "webmaster@tubo-world.de",
599 "homepage": "https://github.com/Tobion"
574600 }
575601 ],
576602 "description": "Guzzle is a PHP HTTP client library",
577 "homepage": "http://guzzlephp.org/",
578603 "keywords": [
579604 "client",
580605 "curl",
@@ -588,7 +613,7 @@
588613 ],
589614 "support": {
590615 "issues": "https://github.com/guzzle/guzzle/issues",
591 "source": "https://github.com/guzzle/guzzle/tree/7.3.0"
616 "source": "https://github.com/guzzle/guzzle/tree/7.4.0"
592617 },
593618 "funding": [
594619 {
@@ -600,28 +625,24 @@
600625 "type": "github"
601626 },
602627 {
603 "url": "https://github.com/alexeyshockov",
604 "type": "github"
605 },
606 {
607 "url": "https://github.com/gmponos",
608 "type": "github"
628 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle",
629 "type": "tidelift"
609630 }
610631 ],
611 "time": "2021-03-23T11:33:13+00:00"
632 "time": "2021-10-18T09:52:00+00:00"
612633 },
613634 {
614635 "name": "guzzlehttp/promises",
615 "version": "1.4.1",
636 "version": "1.5.0",
616637 "source": {
617638 "type": "git",
618639 "url": "https://github.com/guzzle/promises.git",
619 "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d"
640 "reference": "136a635e2b4a49b9d79e9c8fee267ffb257fdba0"
620641 },
621642 "dist": {
622643 "type": "zip",
623 "url": "https://api.github.com/repos/guzzle/promises/zipball/8e7d04f1f6450fef59366c399cfad4b9383aa30d",
624 "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d",
644 "url": "https://api.github.com/repos/guzzle/promises/zipball/136a635e2b4a49b9d79e9c8fee267ffb257fdba0",
645 "reference": "136a635e2b4a49b9d79e9c8fee267ffb257fdba0",
625646 "shasum": ""
626647 },
627648 "require": {
@@ -633,7 +654,7 @@
633654 "type": "library",
634655 "extra": {
635656 "branch-alias": {
636 "dev-master": "1.4-dev"
657 "dev-master": "1.5-dev"
637658 }
638659 },
639660 "autoload": {
@@ -649,10 +670,25 @@
649670 "MIT"
650671 ],
651672 "authors": [
673 {
674 "name": "Graham Campbell",
675 "email": "hello@gjcampbell.co.uk",
676 "homepage": "https://github.com/GrahamCampbell"
677 },
652678 {
653679 "name": "Michael Dowling",
654680 "email": "mtdowling@gmail.com",
655681 "homepage": "https://github.com/mtdowling"
682 },
683 {
684 "name": "Tobias Nyholm",
685 "email": "tobias.nyholm@gmail.com",
686 "homepage": "https://github.com/Nyholm"
687 },
688 {
689 "name": "Tobias Schultze",
690 "email": "webmaster@tubo-world.de",
691 "homepage": "https://github.com/Tobion"
656692 }
657693 ],
658694 "description": "Guzzle promises library",
@@ -661,22 +697,36 @@
661697 ],
662698 "support": {
663699 "issues": "https://github.com/guzzle/promises/issues",
664 "source": "https://github.com/guzzle/promises/tree/1.4.1"
700 "source": "https://github.com/guzzle/promises/tree/1.5.0"
665701 },
666 "time": "2021-03-07T09:25:29+00:00"
702 "funding": [
703 {
704 "url": "https://github.com/GrahamCampbell",
705 "type": "github"
706 },
707 {
708 "url": "https://github.com/Nyholm",
709 "type": "github"
710 },
711 {
712 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises",
713 "type": "tidelift"
714 }
715 ],
716 "time": "2021-10-07T13:05:22+00:00"
667717 },
668718 {
669719 "name": "guzzlehttp/psr7",
670 "version": "2.0.0",
720 "version": "2.1.0",
671721 "source": {
672722 "type": "git",
673723 "url": "https://github.com/guzzle/psr7.git",
674 "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7"
724 "reference": "089edd38f5b8abba6cb01567c2a8aaa47cec4c72"
675725 },
676726 "dist": {
677727 "type": "zip",
678 "url": "https://api.github.com/repos/guzzle/psr7/zipball/1dc8d9cba3897165e16d12bb13d813afb1eb3fe7",
679 "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7",
728 "url": "https://api.github.com/repos/guzzle/psr7/zipball/089edd38f5b8abba6cb01567c2a8aaa47cec4c72",
729 "reference": "089edd38f5b8abba6cb01567c2a8aaa47cec4c72",
680730 "shasum": ""
681731 },
682732 "require": {
@@ -700,7 +750,7 @@
700750 "type": "library",
701751 "extra": {
702752 "branch-alias": {
703 "dev-master": "2.0-dev"
753 "dev-master": "2.1-dev"
704754 }
705755 },
706756 "autoload": {
@@ -713,13 +763,34 @@
713763 "MIT"
714764 ],
715765 "authors": [
766 {
767 "name": "Graham Campbell",
768 "email": "hello@gjcampbell.co.uk",
769 "homepage": "https://github.com/GrahamCampbell"
770 },
716771 {
717772 "name": "Michael Dowling",
718773 "email": "mtdowling@gmail.com",
719774 "homepage": "https://github.com/mtdowling"
720775 },
776 {
777 "name": "George Mponos",
778 "email": "gmponos@gmail.com",
779 "homepage": "https://github.com/gmponos"
780 },
781 {
782 "name": "Tobias Nyholm",
783 "email": "tobias.nyholm@gmail.com",
784 "homepage": "https://github.com/Nyholm"
785 },
786 {
787 "name": "Márk Sági-Kazár",
788 "email": "mark.sagikazar@gmail.com",
789 "homepage": "https://github.com/sagikazarmark"
790 },
721791 {
722792 "name": "Tobias Schultze",
793 "email": "webmaster@tubo-world.de",
723794 "homepage": "https://github.com/Tobion"
724795 },
725796 {
@@ -741,9 +812,23 @@
741812 ],
742813 "support": {
743814 "issues": "https://github.com/guzzle/psr7/issues",
744 "source": "https://github.com/guzzle/psr7/tree/2.0.0"
815 "source": "https://github.com/guzzle/psr7/tree/2.1.0"
745816 },
746 "time": "2021-06-30T20:03:07+00:00"
817 "funding": [
818 {
819 "url": "https://github.com/GrahamCampbell",
820 "type": "github"
821 },
822 {
823 "url": "https://github.com/Nyholm",
824 "type": "github"
825 },
826 {
827 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7",
828 "type": "tidelift"
829 }
830 ],
831 "time": "2021-10-06T17:43:30+00:00"
747832 },
748833 {
749834 "name": "laravel/framework",
src/MeemaAdapter.phpmodified+32-51
Changes to src/MeemaAdapter.php
@@ -21,10 +21,9 @@ class MeemaAdapter extends AbstractAdapter
2121 /**
2222 * Write a new file.
2323 *
24 * @param string $path
25 * @param string $contents
26 * @param Config $config Config object
27 *
24 * @param string $path
25 * @param string $contents
26 * @param Config $config Config object
2827 * @return false|array false on failure file meta data on success
2928 */
3029 public function write($path, $contents, Config $config)
@@ -35,10 +34,9 @@ class MeemaAdapter extends AbstractAdapter
3534 /**
3635 * Write a new file using a stream.
3736 *
38 * @param string $path
39 * @param resource $resource
40 * @param Config $config Config object
41 *
37 * @param string $path
38 * @param resource $resource
39 * @param Config $config Config object
4240 * @return array|false false on failure file meta data on success
4341 */
4442 public function writeStream($path, $resource, Config $config)
@@ -49,10 +47,9 @@ class MeemaAdapter extends AbstractAdapter
4947 /**
5048 * Update a file.
5149 *
52 * @param string $path
53 * @param string $contents
54 * @param Config $config Config object
55 *
50 * @param string $path
51 * @param string $contents
52 * @param Config $config Config object
5653 * @return array|false false on failure file meta data on success
5754 */
5855 public function update($path, $contents, Config $config)
@@ -63,10 +60,9 @@ class MeemaAdapter extends AbstractAdapter
6360 /**
6461 * Update a file using a stream.
6562 *
66 * @param string $path
67 * @param resource $resource
68 * @param Config $config Config object
69 *
63 * @param string $path
64 * @param resource $resource
65 * @param Config $config Config object
7066 * @return array|false false on failure file meta data on success
7167 */
7268 public function updateStream($path, $resource, Config $config)
@@ -77,9 +73,8 @@ class MeemaAdapter extends AbstractAdapter
7773 /**
7874 * Rename a file.
7975 *
80 * @param string $path
81 * @param string $newpath
82 *
76 * @param string $path
77 * @param string $newpath
8378 * @return bool
8479 */
8580 public function rename($path, $newpath)
@@ -90,9 +85,8 @@ class MeemaAdapter extends AbstractAdapter
9085 /**
9186 * Copy a file.
9287 *
93 * @param string $path
94 * @param string $newpath
95 *
88 * @param string $path
89 * @param string $newpath
9690 * @return bool
9791 */
9892 public function copy($path, $newpath)
@@ -103,8 +97,7 @@ class MeemaAdapter extends AbstractAdapter
10397 /**
10498 * Delete a file.
10599 *
106 * @param string $path
107 *
100 * @param string $path
108101 * @return bool
109102 */
110103 public function delete($path)
@@ -115,8 +108,7 @@ class MeemaAdapter extends AbstractAdapter
115108 /**
116109 * Delete a directory.
117110 *
118 * @param string $dirname
119 *
111 * @param string $dirname
120112 * @return bool
121113 */
122114 public function deleteDir($dirname)
@@ -127,9 +119,8 @@ class MeemaAdapter extends AbstractAdapter
127119 /**
128120 * Create a directory.
129121 *
130 * @param string $dirname directory name
131 * @param Config $config
132 *
122 * @param string $dirname directory name
123 * @param Config $config
133124 * @return array|false
134125 */
135126 public function createDir($dirname, Config $config)
@@ -140,9 +131,8 @@ class MeemaAdapter extends AbstractAdapter
140131 /**
141132 * Set the visibility for a file.
142133 *
143 * @param string $path
144 * @param string $visibility
145 *
134 * @param string $path
135 * @param string $visibility
146136 * @return array|false file meta data
147137 */
148138 public function setVisibility($path, $visibility)
@@ -153,8 +143,7 @@ class MeemaAdapter extends AbstractAdapter
153143 /**
154144 * Check whether a file exists.
155145 *
156 * @param string $path
157 *
146 * @param string $path
158147 * @return bool
159148 */
160149 public function has($path)
@@ -165,8 +154,7 @@ class MeemaAdapter extends AbstractAdapter
165154 /**
166155 * Read a file.
167156 *
168 * @param string $path
169 *
157 * @param string $path
170158 * @return false|array
171159 */
172160 public function read($path)
@@ -177,9 +165,8 @@ class MeemaAdapter extends AbstractAdapter
177165 /**
178166 * List contents of a directory.
179167 *
180 * @param string $directory
181 * @param bool $recursive
182 *
168 * @param string $directory
169 * @param bool $recursive
183170 * @return array
184171 */
185172 public function listContents($directory = '', $recursive = false)
@@ -190,8 +177,7 @@ class MeemaAdapter extends AbstractAdapter
190177 /**
191178 * Read a file as a stream.
192179 *
193 * @param string $path
194 *
180 * @param string $path
195181 * @return array|false
196182 */
197183 public function readStream($path)
@@ -202,8 +188,7 @@ class MeemaAdapter extends AbstractAdapter
202188 /**
203189 * Get all the meta data of a file or directory.
204190 *
205 * @param string $path
206 *
191 * @param string $path
207192 * @return false|array
208193 */
209194 public function getMetadata($path)
@@ -214,8 +199,7 @@ class MeemaAdapter extends AbstractAdapter
214199 /**
215200 * Get all the meta data of a file or directory.
216201 *
217 * @param string $path
218 *
202 * @param string $path
219203 * @return false|array
220204 */
221205 public function getSize($path)
@@ -226,8 +210,7 @@ class MeemaAdapter extends AbstractAdapter
226210 /**
227211 * Get the mimetype of a file.
228212 *
229 * @param string $path
230 *
213 * @param string $path
231214 * @return false|array
232215 */
233216 public function getMimetype($path)
@@ -238,8 +221,7 @@ class MeemaAdapter extends AbstractAdapter
238221 /**
239222 * Get the timestamp of a file.
240223 *
241 * @param string $path
242 *
224 * @param string $path
243225 * @return false|array
244226 */
245227 public function getTimestamp($path)
@@ -250,8 +232,7 @@ class MeemaAdapter extends AbstractAdapter
250232 /**
251233 * Get the visibility of a file.
252234 *
253 * @param string $path
254 *
235 * @param string $path
255236 * @return array|false
256237 */
257238 public function getVisibility($path)