ReviewOS

also looking at this

meemalabs/flysystem-meema

chore(deps): bump vlucas/phpdotenv from 5.3.0 to 5.4.0

#59
Closed dependabot[bot] wants to merge dependabot/composer/vlucas/phpdotenv-5.4.0 into main
2 files +81 -106
composer.lockmodified+49-55
Changes to composer.lock
@@ -443,31 +443,26 @@
443443 },
444444 {
445445 "name": "graham-campbell/result-type",
446 "version": "v1.0.1",
446 "version": "v1.0.4",
447447 "source": {
448448 "type": "git",
449449 "url": "https://github.com/GrahamCampbell/Result-Type.git",
450 "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb"
450 "reference": "0690bde05318336c7221785f2a932467f98b64ca"
451451 },
452452 "dist": {
453453 "type": "zip",
454 "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/7e279d2cd5d7fbb156ce46daada972355cea27bb",
455 "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb",
454 "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/0690bde05318336c7221785f2a932467f98b64ca",
455 "reference": "0690bde05318336c7221785f2a932467f98b64ca",
456456 "shasum": ""
457457 },
458458 "require": {
459 "php": "^7.0|^8.0",
460 "phpoption/phpoption": "^1.7.3"
459 "php": "^7.0 || ^8.0",
460 "phpoption/phpoption": "^1.8"
461461 },
462462 "require-dev": {
463 "phpunit/phpunit": "^6.5|^7.5|^8.5|^9.0"
463 "phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19 || ^9.5.8"
464464 },
465465 "type": "library",
466 "extra": {
467 "branch-alias": {
468 "dev-master": "1.0-dev"
469 }
470 },
471466 "autoload": {
472467 "psr-4": {
473468 "GrahamCampbell\\ResultType\\": "src/"
@@ -480,7 +475,8 @@
480475 "authors": [
481476 {
482477 "name": "Graham Campbell",
483 "email": "graham@alt-three.com"
478 "email": "hello@gjcampbell.co.uk",
479 "homepage": "https://github.com/GrahamCampbell"
484480 }
485481 ],
486482 "description": "An Implementation Of The Result Type",
@@ -493,7 +489,7 @@
493489 ],
494490 "support": {
495491 "issues": "https://github.com/GrahamCampbell/Result-Type/issues",
496 "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.1"
492 "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.4"
497493 },
498494 "funding": [
499495 {
@@ -505,7 +501,7 @@
505501 "type": "tidelift"
506502 }
507503 ],
508 "time": "2020-04-13T13:17:36+00:00"
504 "time": "2021-11-21T21:41:47+00:00"
509505 },
510506 {
511507 "name": "guzzlehttp/guzzle",
@@ -1108,16 +1104,16 @@
11081104 },
11091105 {
11101106 "name": "league/flysystem",
1111 "version": "1.1.4",
1107 "version": "1.1.6",
11121108 "source": {
11131109 "type": "git",
11141110 "url": "https://github.com/thephpleague/flysystem.git",
1115 "reference": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32"
1111 "reference": "627be7fcde84c71aa0f15097fcf48fd5f2be5287"
11161112 },
11171113 "dist": {
11181114 "type": "zip",
1119 "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/f3ad69181b8afed2c9edf7be5a2918144ff4ea32",
1120 "reference": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32",
1115 "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/627be7fcde84c71aa0f15097fcf48fd5f2be5287",
1116 "reference": "627be7fcde84c71aa0f15097fcf48fd5f2be5287",
11211117 "shasum": ""
11221118 },
11231119 "require": {
@@ -1190,7 +1186,7 @@
11901186 ],
11911187 "support": {
11921188 "issues": "https://github.com/thephpleague/flysystem/issues",
1193 "source": "https://github.com/thephpleague/flysystem/tree/1.1.4"
1189 "source": "https://github.com/thephpleague/flysystem/tree/1.1.6"
11941190 },
11951191 "funding": [
11961192 {
@@ -1198,20 +1194,20 @@
11981194 "type": "other"
11991195 }
12001196 ],
1201 "time": "2021-06-23T21:56:05+00:00"
1197 "time": "2021-11-21T11:04:36+00:00"
12021198 },
12031199 {
12041200 "name": "league/mime-type-detection",
1205 "version": "1.7.0",
1201 "version": "1.9.0",
12061202 "source": {
12071203 "type": "git",
12081204 "url": "https://github.com/thephpleague/mime-type-detection.git",
1209 "reference": "3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3"
1205 "reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69"
12101206 },
12111207 "dist": {
12121208 "type": "zip",
1213 "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
1214 "reference": "3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
1209 "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/aa70e813a6ad3d1558fc927863d47309b4c23e69",
1210 "reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69",
12151211 "shasum": ""
12161212 },
12171213 "require": {
@@ -1219,7 +1215,7 @@
12191215 "php": "^7.2 || ^8.0"
12201216 },
12211217 "require-dev": {
1222 "friendsofphp/php-cs-fixer": "^2.18",
1218 "friendsofphp/php-cs-fixer": "^3.2",
12231219 "phpstan/phpstan": "^0.12.68",
12241220 "phpunit/phpunit": "^8.5.8 || ^9.3"
12251221 },
@@ -1242,7 +1238,7 @@
12421238 "description": "Mime-type detection for Flysystem",
12431239 "support": {
12441240 "issues": "https://github.com/thephpleague/mime-type-detection/issues",
1245 "source": "https://github.com/thephpleague/mime-type-detection/tree/1.7.0"
1241 "source": "https://github.com/thephpleague/mime-type-detection/tree/1.9.0"
12461242 },
12471243 "funding": [
12481244 {
@@ -1254,7 +1250,7 @@
12541250 "type": "tidelift"
12551251 }
12561252 ],
1257 "time": "2021-01-18T20:58:21+00:00"
1253 "time": "2021-11-21T11:48:40+00:00"
12581254 },
12591255 {
12601256 "name": "meema/meema-client-php",
@@ -1723,29 +1719,29 @@
17231719 },
17241720 {
17251721 "name": "phpoption/phpoption",
1726 "version": "1.7.5",
1722 "version": "1.8.0",
17271723 "source": {
17281724 "type": "git",
17291725 "url": "https://github.com/schmittjoh/php-option.git",
1730 "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525"
1726 "reference": "5455cb38aed4523f99977c4a12ef19da4bfe2a28"
17311727 },
17321728 "dist": {
17331729 "type": "zip",
1734 "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/994ecccd8f3283ecf5ac33254543eb0ac946d525",
1735 "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525",
1730 "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/5455cb38aed4523f99977c4a12ef19da4bfe2a28",
1731 "reference": "5455cb38aed4523f99977c4a12ef19da4bfe2a28",
17361732 "shasum": ""
17371733 },
17381734 "require": {
1739 "php": "^5.5.9 || ^7.0 || ^8.0"
1735 "php": "^7.0 || ^8.0"
17401736 },
17411737 "require-dev": {
17421738 "bamarni/composer-bin-plugin": "^1.4.1",
1743 "phpunit/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0 || ^8.0 || ^9.0"
1739 "phpunit/phpunit": "^6.5.14 || ^7.0.20 || ^8.5.19 || ^9.5.8"
17441740 },
17451741 "type": "library",
17461742 "extra": {
17471743 "branch-alias": {
1748 "dev-master": "1.7-dev"
1744 "dev-master": "1.8-dev"
17491745 }
17501746 },
17511747 "autoload": {
@@ -1764,7 +1760,7 @@
17641760 },
17651761 {
17661762 "name": "Graham Campbell",
1767 "email": "graham@alt-three.com"
1763 "email": "hello@gjcampbell.co.uk"
17681764 }
17691765 ],
17701766 "description": "Option Type for PHP",
@@ -1776,7 +1772,7 @@
17761772 ],
17771773 "support": {
17781774 "issues": "https://github.com/schmittjoh/php-option/issues",
1779 "source": "https://github.com/schmittjoh/php-option/tree/1.7.5"
1775 "source": "https://github.com/schmittjoh/php-option/tree/1.8.0"
17801776 },
17811777 "funding": [
17821778 {
@@ -1788,7 +1784,7 @@
17881784 "type": "tidelift"
17891785 }
17901786 ],
1791 "time": "2020-07-20T17:29:33+00:00"
1787 "time": "2021-08-28T21:27:29+00:00"
17921788 },
17931789 {
17941790 "name": "psr/container",
@@ -4754,31 +4750,31 @@
47544750 },
47554751 {
47564752 "name": "vlucas/phpdotenv",
4757 "version": "v5.3.0",
4753 "version": "v5.4.0",
47584754 "source": {
47594755 "type": "git",
47604756 "url": "https://github.com/vlucas/phpdotenv.git",
4761 "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56"
4757 "reference": "d4394d044ed69a8f244f3445bcedf8a0d7fe2403"
47624758 },
47634759 "dist": {
47644760 "type": "zip",
4765 "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/b3eac5c7ac896e52deab4a99068e3f4ab12d9e56",
4766 "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56",
4761 "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/d4394d044ed69a8f244f3445bcedf8a0d7fe2403",
4762 "reference": "d4394d044ed69a8f244f3445bcedf8a0d7fe2403",
47674763 "shasum": ""
47684764 },
47694765 "require": {
47704766 "ext-pcre": "*",
4771 "graham-campbell/result-type": "^1.0.1",
4767 "graham-campbell/result-type": "^1.0.2",
47724768 "php": "^7.1.3 || ^8.0",
4773 "phpoption/phpoption": "^1.7.4",
4774 "symfony/polyfill-ctype": "^1.17",
4775 "symfony/polyfill-mbstring": "^1.17",
4776 "symfony/polyfill-php80": "^1.17"
4769 "phpoption/phpoption": "^1.8",
4770 "symfony/polyfill-ctype": "^1.23",
4771 "symfony/polyfill-mbstring": "^1.23.1",
4772 "symfony/polyfill-php80": "^1.23.1"
47774773 },
47784774 "require-dev": {
47794775 "bamarni/composer-bin-plugin": "^1.4.1",
47804776 "ext-filter": "*",
4781 "phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5.1"
4777 "phpunit/phpunit": "^7.5.20 || ^8.5.21 || ^9.5.10"
47824778 },
47834779 "suggest": {
47844780 "ext-filter": "Required to use the boolean validator."
@@ -4786,7 +4782,7 @@
47864782 "type": "library",
47874783 "extra": {
47884784 "branch-alias": {
4789 "dev-master": "5.3-dev"
4785 "dev-master": "5.4-dev"
47904786 }
47914787 },
47924788 "autoload": {
@@ -4801,13 +4797,11 @@
48014797 "authors": [
48024798 {
48034799 "name": "Graham Campbell",
4804 "email": "graham@alt-three.com",
4805 "homepage": "https://gjcampbell.co.uk/"
4800 "email": "hello@gjcampbell.co.uk"
48064801 },
48074802 {
48084803 "name": "Vance Lucas",
4809 "email": "vance@vancelucas.com",
4810 "homepage": "https://vancelucas.com/"
4804 "email": "vance@vancelucas.com"
48114805 }
48124806 ],
48134807 "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
@@ -4818,7 +4812,7 @@
48184812 ],
48194813 "support": {
48204814 "issues": "https://github.com/vlucas/phpdotenv/issues",
4821 "source": "https://github.com/vlucas/phpdotenv/tree/v5.3.0"
4815 "source": "https://github.com/vlucas/phpdotenv/tree/v5.4.0"
48224816 },
48234817 "funding": [
48244818 {
@@ -4830,7 +4824,7 @@
48304824 "type": "tidelift"
48314825 }
48324826 ],
4833 "time": "2021-01-20T15:23:13+00:00"
4827 "time": "2021-11-10T01:08:39+00:00"
48344828 },
48354829 {
48364830 "name": "voku/portable-ascii",
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)