ReviewOS

also looking at this

meemalabs/flysystem-meema

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

#48
Merged dependabot[bot] wants to merge dependabot/composer/vlucas/phpdotenv-5.3.1 into main
2 files +66 -92
composer.lockmodified+34-41
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.2",
447447 "source": {
448448 "type": "git",
449449 "url": "https://github.com/GrahamCampbell/Result-Type.git",
450 "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb"
450 "reference": "84afea85c6841deeea872f36249a206e878a5de0"
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/84afea85c6841deeea872f36249a206e878a5de0",
455 "reference": "84afea85c6841deeea872f36249a206e878a5de0",
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,7 @@
480475 "authors": [
481476 {
482477 "name": "Graham Campbell",
483 "email": "graham@alt-three.com"
478 "email": "hello@gjcampbell.co.uk"
484479 }
485480 ],
486481 "description": "An Implementation Of The Result Type",
@@ -493,7 +488,7 @@
493488 ],
494489 "support": {
495490 "issues": "https://github.com/GrahamCampbell/Result-Type/issues",
496 "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.1"
491 "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.2"
497492 },
498493 "funding": [
499494 {
@@ -505,7 +500,7 @@
505500 "type": "tidelift"
506501 }
507502 ],
508 "time": "2020-04-13T13:17:36+00:00"
503 "time": "2021-08-28T21:34:50+00:00"
509504 },
510505 {
511506 "name": "guzzlehttp/guzzle",
@@ -1723,29 +1718,29 @@
17231718 },
17241719 {
17251720 "name": "phpoption/phpoption",
1726 "version": "1.7.5",
1721 "version": "1.8.0",
17271722 "source": {
17281723 "type": "git",
17291724 "url": "https://github.com/schmittjoh/php-option.git",
1730 "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525"
1725 "reference": "5455cb38aed4523f99977c4a12ef19da4bfe2a28"
17311726 },
17321727 "dist": {
17331728 "type": "zip",
1734 "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/994ecccd8f3283ecf5ac33254543eb0ac946d525",
1735 "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525",
1729 "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/5455cb38aed4523f99977c4a12ef19da4bfe2a28",
1730 "reference": "5455cb38aed4523f99977c4a12ef19da4bfe2a28",
17361731 "shasum": ""
17371732 },
17381733 "require": {
1739 "php": "^5.5.9 || ^7.0 || ^8.0"
1734 "php": "^7.0 || ^8.0"
17401735 },
17411736 "require-dev": {
17421737 "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"
1738 "phpunit/phpunit": "^6.5.14 || ^7.0.20 || ^8.5.19 || ^9.5.8"
17441739 },
17451740 "type": "library",
17461741 "extra": {
17471742 "branch-alias": {
1748 "dev-master": "1.7-dev"
1743 "dev-master": "1.8-dev"
17491744 }
17501745 },
17511746 "autoload": {
@@ -1764,7 +1759,7 @@
17641759 },
17651760 {
17661761 "name": "Graham Campbell",
1767 "email": "graham@alt-three.com"
1762 "email": "hello@gjcampbell.co.uk"
17681763 }
17691764 ],
17701765 "description": "Option Type for PHP",
@@ -1776,7 +1771,7 @@
17761771 ],
17771772 "support": {
17781773 "issues": "https://github.com/schmittjoh/php-option/issues",
1779 "source": "https://github.com/schmittjoh/php-option/tree/1.7.5"
1774 "source": "https://github.com/schmittjoh/php-option/tree/1.8.0"
17801775 },
17811776 "funding": [
17821777 {
@@ -1788,7 +1783,7 @@
17881783 "type": "tidelift"
17891784 }
17901785 ],
1791 "time": "2020-07-20T17:29:33+00:00"
1786 "time": "2021-08-28T21:27:29+00:00"
17921787 },
17931788 {
17941789 "name": "psr/container",
@@ -4754,31 +4749,31 @@
47544749 },
47554750 {
47564751 "name": "vlucas/phpdotenv",
4757 "version": "v5.3.0",
4752 "version": "v5.3.1",
47584753 "source": {
47594754 "type": "git",
47604755 "url": "https://github.com/vlucas/phpdotenv.git",
4761 "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56"
4756 "reference": "accaddf133651d4b5cf81a119f25296736ffc850"
47624757 },
47634758 "dist": {
47644759 "type": "zip",
4765 "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/b3eac5c7ac896e52deab4a99068e3f4ab12d9e56",
4766 "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56",
4760 "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/accaddf133651d4b5cf81a119f25296736ffc850",
4761 "reference": "accaddf133651d4b5cf81a119f25296736ffc850",
47674762 "shasum": ""
47684763 },
47694764 "require": {
47704765 "ext-pcre": "*",
4771 "graham-campbell/result-type": "^1.0.1",
4766 "graham-campbell/result-type": "^1.0.2",
47724767 "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"
4768 "phpoption/phpoption": "^1.8",
4769 "symfony/polyfill-ctype": "^1.23",
4770 "symfony/polyfill-mbstring": "^1.23.1",
4771 "symfony/polyfill-php80": "^1.23.1"
47774772 },
47784773 "require-dev": {
47794774 "bamarni/composer-bin-plugin": "^1.4.1",
47804775 "ext-filter": "*",
4781 "phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5.1"
4776 "phpunit/phpunit": "^7.5.20 || ^8.5.21 || ^9.5.10"
47824777 },
47834778 "suggest": {
47844779 "ext-filter": "Required to use the boolean validator."
@@ -4801,13 +4796,11 @@
48014796 "authors": [
48024797 {
48034798 "name": "Graham Campbell",
4804 "email": "graham@alt-three.com",
4805 "homepage": "https://gjcampbell.co.uk/"
4799 "email": "hello@gjcampbell.co.uk"
48064800 },
48074801 {
48084802 "name": "Vance Lucas",
4809 "email": "vance@vancelucas.com",
4810 "homepage": "https://vancelucas.com/"
4803 "email": "vance@vancelucas.com"
48114804 }
48124805 ],
48134806 "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
@@ -4818,7 +4811,7 @@
48184811 ],
48194812 "support": {
48204813 "issues": "https://github.com/vlucas/phpdotenv/issues",
4821 "source": "https://github.com/vlucas/phpdotenv/tree/v5.3.0"
4814 "source": "https://github.com/vlucas/phpdotenv/tree/v5.3.1"
48224815 },
48234816 "funding": [
48244817 {
@@ -4830,7 +4823,7 @@
48304823 "type": "tidelift"
48314824 }
48324825 ],
4833 "time": "2021-01-20T15:23:13+00:00"
4826 "time": "2021-10-02T19:24:42+00:00"
48344827 },
48354828 {
48364829 "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)